fopen

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

 



Hi,
FOpen question. My script is dying. "Our results file could not be opened for writing"

What can I add to get more info from the die? Do I «have» to specify a pathname in $defaultfile?

John

 $defaultfile = "ffmail.txt"; #default file to write to
@ $results = fopen($datafilename, "a");  #open file and supress errors
 #print custom error if file doesn't exist or improper permissions
 if (!$results) { die ("Our results file could not be opened for writing."); }

-- 
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