#22643 [NEW]: Opposite of file_get_contents
| From: | rems_support at sympatico dot ca | Date: | Wed, 12 Mar 2003 01:27:14 +0000 |
| Subject: | #22643 [NEW]: Opposite of file_get_contents | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-35377@lists.php.net to get a copy of this message | ||
From: rems_support at sympatico dot ca
Operating system: Debian GNU/Linux
PHP version: 4.3.1
PHP Bug Type: Feature/Change Request
Bug description: Opposite of file_get_contents
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.
--
Edit bug report at http://bugs.php.net/?id=22643&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22643&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22643&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22643&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22643&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22643&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22643&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22643&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22643&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22643&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22643&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22643&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22643&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22643&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22643&r=gnused