Forum Moderators: coopster
file_get_contents [php.net] will read the entire file into a string.
str_replace [php.net] will then replace anything in the string your want to.
what's left is to save the string into a file again. that's a little more work. the fopen [php.net] function will be needed to create the new file and fwrite [php.net] to save it. don't forget to apply fclose later on. anyways, in the last link there is a complete description how to save a file, so this will help you a lot. and anyways: each link contains detailed information about the function and sample code.
i think this should lead you to your script.
--hakre