bidvertiser

Friday, September 12, 2008

PHP file create and open

The fopen( ) function.
fopen ($filename, $mode);
$filename - the name of the file. This may also include the absolute path where you want to create the file. Example, "/www/myapp/myfile.txt".
$mode - mode is used to specify how you want to create the file. For example, you can set the mode to create for read only, or create a file for read and write. Below is the list of possible modes you can use.
If successful this function returns the file handle, otherwise it returns a false value.

No comments: