For some reason that I don't understand, video websites do not play when using something like this
curl_setopt ($curl, CURLOPT_URL, "http://www.dailymotion.com/video/xn8oqe" );
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt ($curl, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)' );
curl_setopt ($curl, CURLOPT_BINARYTRANSFER, TRUE );
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
can someone please help me understand what needs to be done to have my web server play the video? it seems to load the web-page fine, but the video itself does not play
You can not pull a video like that from dailymotion .. The real URL of the video you are about to pull is
Its using an embedded player ... make surre you ready copyright information before you go further
:)