RE: CAN NOT read qmail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux