NYCPHP Meetup

NYPHP.org

[nycphp-talk] phantom file writing errors

inforequest sm11szw02 at sneakemail.com
Tue Jul 27 00:22:58 EDT 2004


This is often a file-handle-passed problem. Show us the the code where 
you assign $output_path, and why not $output as well to be thorough.



Marc Antony Vose suzerain-at-suzerain.com |nyphp 04/2004| wrote:

> Hi there:
>
> Can anyone tell my why I would get this error:
>
> Warning: fwrite(): supplied argument is not a valid stream resource in 
> Warning: fclose(): supplied argument is not a valid stream resource in
> when the script is in fact opening and writing out the file just fine?
>
> here's my file handling calls, just for reference:
>
> // output the file
> $output_h = fopen($output_path,"w");
> fwrite($output_h,$output);
> fclose($output_h);
>
>
> This is happening on a new server I just moved to, and doesn't happen 
> on my old server, nor did it happen on my old server.  Must be some 
> kind of configuration thing...
>
>-- 
>  
>
> Marc Antony Vose
> http://www.suzerain.com/
>
> They that can give up essential liberty to obtain a little temporary 
> safety deserve neither liberty nor safety.
> -- Benjamin Franklin
>
>------------------------------------------------------------------------
>
>_______________________________________________
>New York PHP Talk
>Supporting AMP Technology (Apache/MySQL/PHP)
>http://lists.nyphp.org/mailman/listinfo/talk
>http://www.newyorkphp.org
>




More information about the talk mailing list