Pocko.org – Rosen Ivanov

Everything is possible! The impossible just takes a little more time…
<?php

/**
* Open an url on https using curl and return content
*
* @param string url            The url to open
* @param string refer        Referer (optional)
* @param mixed usecookie    If true, cookie.txt    will be used as default, or the usecookie value.
* @return string
*/

function open_https_url($url,$refer = "",$usecookie = false) {

    if ($usecookie) {
       
        if (file_exists($usecookie)) {
       
            if (!is_writable($usecookie)) {
               
                return "Can't write to $usecookie cookie file, change file permission to 777 or remove read only for windows.";
            }
        } else {
            $usecookie = "cookie.txt";
            if (!is_writable($usecookie)) {
               
                return "Can't write to $usecookie cookie file, change file permission to 777 or remove read only for windows.";
            }
        }
   
    }

    $ch = curl_init();
   
    curl_setopt($ch, CURLOPT_URL, $url);
   
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
   
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
   
    curl_setopt($ch, CURLOPT_HEADER, 1);
   
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
   
    if ($usecookie) {
        curl_setopt($ch, CURLOPT_COOKIEJAR, $usecookie);
       
        curl_setopt($ch, CURLOPT_COOKIEFILE, $usecookie);  
    }
   
    if ($refer != "") {
   
        curl_setopt($ch, CURLOPT_REFERER, $refer );
       
    }
   
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
   
   $result =curl_exec ($ch);
   
   curl_close ($ch);
   
   return $result;
}
?>

I was looking so many times in the net how to install ffmpeg and all codecs + ffmpeg-php and make it working from the first time …

Well … I found a solution :) . It’s very simple and easy.

1. You have to have installed PHP on your server. It’s better to install the latest version which is now 5.2.9 i think.

2. After you are done with this just follow these steps in the linux console (most of the times we use putty)

mkdir ~/ffmpeg-packages
cd ~/ffmpeg-packages
wget <a title="http://trulymanaged.com/ffmpeg/ffmpeginstall.tar.gz" href="http://trulymanaged.com/ffmpeg/ffmpeginstall.tar.gz">http://trulymanaged.com/ffmpeg/ffmpeginstall.tar.gz</a>
tar -xvzf ffmpeginstall.tar.gz
cd ffmpeginstall

If you don’t want the author to be emailed upon a successful installation, comment out line 47 of install.sh Here is how…

At the command prompt

# nano install.sh

Now comment out line 47

From

echo `hostname -i `|mail -s " FFmpeg installed $_version " vps @ esds.com

To

# echo `hostname -i `|mail -s " FFmpeg installed $_version " vps @ esds.com

Once you have done with this (if you want of course) just run the install script

./install.sh

After everything is done, just reboot your server and check your php configuration (create a php file and use phpinfo() function to get the config of php) if everything is ok and you have installed ffmpeg properly.

SEO Online Course

Hi Again,

I just finished my lectures of SEO in Sofia University and i wanted to publish all materials which i made during the course.

It’s full course which provides basic and advanced knowledges of Search Engine Optimization.
Here is the content of all lectures:

Lecture 1

What is SEO (Search Engine Optimization)?

Do I Need to Perform SEO for My Website?

Who Do I Want to Visit My Website?

What Do I Want Visitors to Do on My Website?

Why we have to do SEO and what will help us?

Who are the people making SEO?

Lecture 2

What Is a Search Engine?

Query interface

Crawlers, spiders, and robots

What are the Databases?

Search algorithms

Algorithms Change

Ranking

Lecture 3

Primary search engines

Secondary search engines

Targeted search engines

Lecture 4

What are robots, crawlers, and spiders?

What’s the Robot Exclusion Standard?

Robots meta tag

Inclusion with XML site mapping

Lecture 5

The Importance of Keywords

Avoid Keyword Stuffing

Inbound Links

What is your Google page index?

Keyword Tools and Services

Lecture 6

Google Basics

The Best of the Rest: Yahoo!, MSN, Ask, AOL

– Yahoo

– MSN/Live Search

– Ask

– AOL

Organic Ranking Factors

Paid Placement

SEO Trend Spotting

Lecture 7

Introduction to Usability

Introduction to Web Accessibility

Accessibility: Principles of Accessible Design

Accessibility: Types of Accessibility Aids

usability, accessability markup

flash accessability

Lecture 8

Introduction to Usability

Introduction to Web Accessibility

Accessibility: Principles of Accessible Design

Accessibility: Types of Accessibility Aids

usability, accessability markup

flash accessability

Lecture 9

Secret Benefits of Accessibility

Lecture 10

Flash optimization for search engines

Download All Lectures

Hope it will be useful for you!

Best Regards,

Ross

Categories

Calendar

March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031