Re: Edit a file
| From: | Miles Thompson | Date: | Sun, 18 May 2003 14:47:18 +0000 |
| Subject: | Re: Edit a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148080@lists.php.net to get a copy of this message | ||
Well, help yourself. Look at the file ands tring function in the manual.
The deal is open the file, read and write out lines until you come to what you want to change
Change it and write it out.
Read and write out the rest.
Been a while since I've done it, but that's the essence.
Miles
At 03:33 PM 5/18/2003 +0100, shaun wrote:
Hi, How can i open a file and change the contents of everything in the file that lands between the <script> </script> tags? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php