Re: fopen
| From: | John Taylor-Johnston | Date: | Sat, 19 Mar 2005 06:36:26 +0000 |
| Subject: | Re: fopen | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211088@lists.php.net to get a copy of this message | ||
I could use:
or die($php_errormsg);
but it is turned off in my php.ini and I can't modify it myself.
John
> 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?
>
> $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."); }