3rd December 2013, 00:04
|
Senior Member
|
|
Join Date: Oct 2010
Posts: 121
|
|
Thanks
Quote:
Originally Posted by firefly007
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');
?>
|
Thank you very much!
works
|