Re: [PHP] change variable in file

2002-06-30 Thread Jason Wong
On Sunday 30 June 2002 03:09, Nookie wrote: Hi, I want to write function which change variable in ie. config.php file ... Here is code: ? include config.php; $file = fopen(config.php, w+); $content = fread($file, filesize(config.php)); $content = str_replace(\$option['test'] = \ .

[PHP] change variable in file

2002-06-29 Thread Nookie
Hi, I want to write function which change variable in ie. config.php file ... Here is code: ? include config.php; $file = fopen(config.php, w+); $content = fread($file, filesize(config.php)); $content = str_replace(\$option['test'] = \ . $option['test'] . \;, \$option['test'] = \po