From b64b0be2dba3b342b70002b02305342e7f4e7ea4 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 2 Sep 2006 17:19:54 +0000 Subject: --- user_guide/helpers/file_helper.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'user_guide') diff --git a/user_guide/helpers/file_helper.html b/user_guide/helpers/file_helper.html index c6b049b27..6970dd586 100644 --- a/user_guide/helpers/file_helper.html +++ b/user_guide/helpers/file_helper.html @@ -103,6 +103,12 @@ else
     echo 'File written!';
} +

You can optionally set the write mode via the third parameter: + +write_file('./path/to/file.php', $data, 'r+'); + +

The default mode is wb. Please see the PHP user guide for mode options.

+

Note: In order for this function to write data to a file its file permissions must be set such that it is writable (666, 777, etc.). If the file does not already exist, the directory containing it must be writable.

-- cgit v1.2.3-24-g4f1b