On Wed, 16 Oct 2002, Christian Schneider wrote: > Hi Folks, > after seeing the new function file_get_contents() I figured a > corresponding file_put() function should be added too. > > Prototype: > int file_put(string filename, mixed data [, string mode]) > > It takes a filename (URL wrappers supported), the data to be written and > a mode for the file. The data can be either a string or an array (which > is like using join("", $data) first and can be used to write data read > by the file() function). The mode can be "a" or "ab" to append to a file > and defaults to "wb". The function returns the number of bytes written > to the stream. > > A test for the function has been included in > ext/standard/tests/file/002.phpt.
Please write a new test for this without piggy backing on the old one. We're trying to get one function tested per tests so that differenc functions in the same test can not be the cause of 'screw-ups'. regards, Derick -- --------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --------------[ if you hold a unix shell to your ear, do you hear the c? ]- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php