Re: fwrite not working in php3
| From: | Jason Wong | Date: | Thu, 17 Jul 2003 05:58:50 +0000 |
| Subject: | Re: fwrite not working in php3 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155541@lists.php.net to get a copy of this message | ||
On Thursday 17 July 2003 09:46, daniel@electroteque.org wrote:
> hi there i have a little problem writing files on a php3 server this code
> worked yesterday but isnt
>
> $handle = fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a');
> $buffer = "test";
> echo fwrite($handle,$buffer,4000);
> fclose($handle);
>
> i get a filesize of 0 and nothing writes to it what could it be ?
What does the error logs say? And try following the examples in the manual
which incorporates the error checking that your code lacks.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The wages of sin are unreported.
*/