|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-02-14 14:15 UTC] torben@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 12:00:01 2025 UTC |
<? $output = "\nGday.\n"; $directory = dirname($path_translated); $filename = fopen($directory . "members/addop.txt", "r+", 1) or die("Can't open file"); if ($output) { $written = fwrite($filename, $output) or die ("Couldn't write to file"); } fclose($filename); ?> When usin r+ it writes to the file addop.txt but just overwrites whateva is at the top. i want it to just add to the top of the file.