Re: [PHP] reading/editing php file with php script

2007-01-06 Thread Robert Cummings
On Sat, 2007-01-06 at 15:12 -0800, jekillen wrote: > Hello; > I have been writing a php script which is supposed to open and edit a > php file on the same server, > in the same directory. But I have not been able to get regex as in > function ereg() to work to match > a line of code to alter. I a

[PHP] reading/editing php file with php script

2007-01-06 Thread jekillen
Hello; I have been writing a php script which is supposed to open and edit a php file on the same server, in the same directory. But I have not been able to get regex as in function ereg() to work to match a line of code to alter. I also have not been able to get strpos() to work in this code.