note 102674 deleted from function.file-put-contents by danbrown

[email protected] Mon, 28 Feb 2011 06:35:11 -0800
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: Vladimir dot php dot net at mail dot ru 

----

To add to the post about PHP4 emulation of file_put_contents function below:
kola_lola at hotmail dot com 06-Nov-2008 11:31
http://php.net/manual/en/function.file-put-contents.php#86864

It is important to place that code BEFORE the function file_put_contents is called in your script, since otherwise it doesn't work. If condition hasn't been checked, your function is not read by PHP yet.

kola_lola, thank you for your code!