Hello,
I'm trying to get infomation from https://vines.co with a script like this
PHP
- <?php$opts = array('http' => array( 'header' => 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; es-CL; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' . PHP_EOL ));$context = stream_context_create($opts);$str = file_get_contents('https://vine.co/v/heHa2lIwjVH',false,$context);echo $str; if(strlen($str)>0){ preg_match('/\<meta name="keywords" content="(.*)\">/',$str,$title); echo $title[1]; }phpinfo();?>
But don't find the why to works ! I test this same script on another web server and works, but when I test on IMSCP webserver doesn't.
I changed this next config :
allow_url_fopen = On
But allways got this error :
Any idea what I'm doing wrong ? Any config to change ?
Thanks
Martin