editing a file with PHP
Posted: Mon May 12, 2008 6:03 pm
Hello. I need PHP to edit a text file. For example.
I have a text file with the following contents:
How would I have a PHP script go and edit color3 to yellow?
Thanks!
I have a text file with the following contents:
Code: Select all
$color1 = red
$color2 = blue
$color3 = green
$color4 = orangeThanks!