Hi
When a video has the structure: [login to view URL] I want to get the code [login to view URL]
For example, when you look at [login to view URL], look at your source code and find this:
flashvars.v = 'DY3XYCSH';
I want to get the code DY3XYCSH. And if flashvars.v is empty or less than 3 characters I want to display the original code, in this case would IT2ESBK0.
It was working with this code:
<?php
function get_vlink($dlink){
$rawdata=file_get_contents($dlink);
$temp = explode('flashvars.v = "',$rawdata);
$temp2 = explode('";',$temp[1]);
if (strlen($temp2[0])>3) {
return "".$temp2[0];
} else {
return $dlink;
}
}
//Example usage:
$vlink=get_vlink("[login to view URL]");
echo $vlink; //output: [login to view URL]
?>
But today is not working because megavideo change " for '
Professional web developer is ready get started right now. PLEASE NOTE: my Deadline is higher than i actually need. Please read private message for more information.