Thread: PHP Question
View Single Post
Old 02-28-2004, 11:45 AM  
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
Quote:
Originally posted by asher
$fd=fopen("http://www.url.com","r");
while ($line=fgets($fd,1000))
{
$alltext.=$line;
}
fclose ($fd);

reads it into $alltext
thanks but i get same errors with this code.. the problem is not that i can't read the file.. if the $url is correct and exist then i can read him withot problems with file() or fopen().... the problem is that when the $url don't exist then u get these warning errors displayed.. in a such case i just want to be displayed my eror text without warnings
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote