Quote:
Originally Posted by Raven
Hi all!
Please help!
Manage torrent imdb likns and image links not good error.
CURL error!
Thank you very much!
|
Code:
sudo apt-get install curl
sudo apt-get install php5-curl
Create a new file called test.php and copy the code below code in and save then go to it
http://yoursite.com/test.php
if you get bvlist then curl should be working
Code:
<?php
function get_data($url) {
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
echo get_data('http://bvlist.com/template-shares/9658-manage-torrent.html#post43408');
?>