I am trying to figure this out, I want to echo information from a variable or any php code beside 'http://vine.co/v/'
under line 3
can anyone help me?
My code:
<?php
$vine = file_get_contents('http://vine.co/v/', false, $test);
$test = "haiKqBFA9Yw";
preg_match('/property="og:image" content="(.*?)"/', $vine, $matches);
$url = $matches[1];
$url = str_replace( 'https://', 'http://', $url );
$url = str_replace( 'versionId=', '', $url );
$img = $url;
$url = substr($img, 0, strpos($img, "?"));
echo $url;
it just returns with $test
not a defined variable.