In article <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> 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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to