In article <[EMAIL PROTECTED]>, 
> Hi,
> Does fopen() work similar to open in CGI ?

?? CGI ?? Some new language?

>  If the file doesn't exist will
> it create it?

Depends on the parameters you feed to fopen for 'mode'; w, w+, a and a+ 
will attempt to create the file if it doesn't exist.

>  What is the best way to test if the file was created?

Check the return value from fopen; it will be false if the attempt 
failed. See the manual for more detail.

David Robley
Temporary Kiwi!

Quod subigo farinam

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to