10-22-2007, 09:51 PM
|
#4 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
should do:
PHP Code:
function file_get_content( $url ) { for( $i = 1; $c <= $this->conf['tries']; $c++ ) { $ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $file = curl_exec($ch);//Returns file contents string, FALSE on failure curl_close($ch);
if($file) { return array( 1 => TRUE, 2 => $file ); break; } } return array( 1 => FALSE, 2 => '' ); }
I havent tested it, but theoreticly it should work.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|