hi
the following code works perfectly:
<?php
$url = "http://www.website.com/";
$file = fopen($url, "r");
$page = fread($file, 10240);
fclose($file);
echo $page;
?>
but if i change the $url variable to http://www.website.com (without the trailing / ) or http://www.website.com?query=hello
i get the following errors:
Warning: fopen("http://www.website.com","r") - Success in /home/dreamtide/www/oneplan/tools/test.php on line 3
Warning: Supplied argument is not a valid File-Handle resource in /home/www/tools/test.php on line 4
Warning: Supplied argument is not a valid File-Handle resource in /home/www/tools/test.php on line 5
i need to load the external url into a variable so that i can ereg a user-submitted field but it seems to be getting stuck just on the fread command at this stage
any help appreciated
BoB.