php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #22643 Opposite of file_get_contents
Submitted: 2003-03-11 19:27 UTC Modified: 2003-03-25 13:06 UTC
From: rems_support at sympatico dot ca Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.1 OS: Debian GNU/Linux
Private report: No CVE-ID: None
 [2003-03-11 19:27 UTC] rems_support at sympatico dot ca
PHP is the best ever.

Since there's now a function to get the contents of a file into a string, wouldn't it be equally beneficial to make a function that will turn a string into a file?

int file_set_contents(string filename, string contents)

Creates or overwrites a file with the string in contents.

Just an idea.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-25 13:06 UTC] sterling@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 18:01:28 2024 UTC