Re: [PHP-DEV] Using PHP for search and replace

2003-01-06 Thread Jean-Michel Dault
Le lun 06/01/2003 à 06:35, Paul Gregg a écrit : > > perl -pi -e "s|^;extension=mysql.so|extension=mysql.so|" /etc/php.ini > > Is there a quick and easy way to do this kind of thing in PHP? Or would > I was about to say "Ask the RPM makers" until I saw who was asking :-) Everyone's doing that.. Red

Re: [PHP-DEV] Using PHP for search and replace

2003-01-06 Thread Paul Gregg
In mail.php.internals, Jean-Michel Dault <[EMAIL PROTECTED]> wrote: > Hello all, > > Currently, both Mandrake and RedHat use the following trick: > perl -pi -e "s|^;extension=mysql.so|extension=mysql.so|" /etc/php.ini > > This sucks, because you then need perl to install a PHP extension. > We sur

[PHP-DEV] Using PHP for search and replace

2003-01-04 Thread Jean-Michel Dault
Hello all, Currently, both Mandrake and RedHat use the following trick: perl -pi -e "s|^;extension=mysql.so|extension=mysql.so|" /etc/php.ini This sucks, because you then need perl to install a PHP extension. We sure could use sed, but this requires a temporary file, and this creates some securit