[snip] I do not get it. I do not where code has basic mistake. [/snip] And that is why putting in basic error checking will help, for instance; $fp = fopen($file, "r"); if($fp){ while(!feof($fp)) { $data = fgets($fp, 1024); echo "$data <br>"; } } else { die("fopen failed for $file") } Please spend some time reading the manual and getting the basics down. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php