Search found 1 match

by frankm
Mon May 12, 2008 6:03 pm
Forum: PHP - Code
Topic: editing a file with PHP
Replies: 1
Views: 390

editing a file with PHP

Hello. I need PHP to edit a text file. For example.

I have a text file with the following contents:

Code: Select all

$color1 = red
$color2 = blue
$color3 = green
$color4 = orange
How would I have a PHP script go and edit color3 to yellow?

Thanks!