RE: [PHP] Prepending string to TOP of files?
| From: | Kevin Stone | Date: | Tue, 26 Feb 2002 22:58:40 +0000 |
| Subject: | RE: [PHP] Prepending string to TOP of files? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86328@lists.php.net to get a copy of this message | ||
I don't think there is a way to do it automatically. Just read the file
into a variable, prepend the new line string, and rewrite the file.
-----Original Message-----
From: Nick Richardson [mailto:esoteric.web@gte.net]
Sent: Tuesday, February 26, 2002 3:41 PM
To: PHP General
Subject: [PHP] Prepending string to TOP of files?
Is there any way to prepend a string into the top of a file? - only docs
on
fopen show how to append to the end?
//Nick Richardson
//esoteric.web@gte.net
//webmaster@moderngarage.com
--------------------------------------------------------------
-- We must come to see that the end we seek, is a society --
-- at peace with itself. A society that can live with its --
-- concience. That will be a day not of the white man, not --
-- of the black man... That will be the day of man, as man! --
-- -Dr. Martin Luther King Jr. --
-- -March 25th, 1965 --
--------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php