jasong
07-17-2005, 11:11 PM
Hi all,
For some odd reason, I am unable to use fopen and fgets with PHP with webhostingtalk.com
I am able to do it with any other sites, but not WHT for some reason.
Here is what I'm using:
$pageurl='http://www.webhostingtalk.com/search.php?s=';
$handle = fopen("$pageurl", "r");
while (!feof($handle)) {
$buffer = fgets($handle, 4096);
$pagecontents.= $buffer;
}
print "$pagecontents";
fclose($handle);
Could anybody try this code out on their servers to see if they are able to?
Thanks,
Jason
For some odd reason, I am unable to use fopen and fgets with PHP with webhostingtalk.com
I am able to do it with any other sites, but not WHT for some reason.
Here is what I'm using:
$pageurl='http://www.webhostingtalk.com/search.php?s=';
$handle = fopen("$pageurl", "r");
while (!feof($handle)) {
$buffer = fgets($handle, 4096);
$pagecontents.= $buffer;
}
print "$pagecontents";
fclose($handle);
Could anybody try this code out on their servers to see if they are able to?
Thanks,
Jason
