Changes

PHP, Filesystems and File I/O

32 bytes added, 14:31, 19 March 2009
Opening and Creating Files in PHP
Existing files are opened, and new files created using the PHP ''fopen()'' function. The ''fopen()'' function accepts two arguments and returns a ''file handle'' which is subsequently used for all future read and write interactions with that file. The first argument is the name (including the path) of the file to open. This path is relative to the server filesystem root, not your web server root. The second argument is an attribute indicating the mode in which you with to open the file (create, read only, write only etc). The following table lists the various file open attributes together with a brief description of each:
<google>ADSDAQBOX_FLOW</google>
<table border="1" cellspacing="0" width="100%">
<tr style="background:#efefef;">