[PHP] Re: Writing to a file

2009-07-03 Thread Shawn McKenzie
Jason Carson wrote: > Hello everybody, > > How would I go about writing stuff to a file but in between the > tags? > > Example, say I have config.php as follows... > > > $hostname = "localhost"; > $database = "database"; > $username = "username"; > $password = "password"; > > ?> > > How wou

[PHP] Re: writing to a file

2002-03-07 Thread David Robley
In article <[EMAIL PROTECTED]>, vallee.marc- [EMAIL PROTECTED] says... > Hi, > > Here is a foo.txt file : > > name=foo > age=100 > sex=y > > I want to open the file, find the age line, and then replace the 100 with > another value. > The only way i see, is to rewrite the entire file Th