Hi!
I would like to know how to overwrite line in file which matches
certain condition. Best thing i managed so far is to write line AFTER
the line i wanted to overwrite under Linux. No such luck under Win2000
which refuses to write anything to a file but file date/time property
has been changed.

File is open using $fp=fopen("$file", "r+");
Writing is done using fputs or fwrite($fp, $data);

In question is PHP standalone executable. Version i 4.0.3pl1(win2000)
and 4.0.0(linux)

Any suggestions are welcome.

10x
Nemanja

NOTE: My email is incorrect. Please remove nospam part.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to