Habe hier bei einem Serverumzug das charset vergessen im Template für die user php.ini (fcgid)
Gibt es einen Linux Befehl mit dem ich alle php.ini auf einmal ändern kann?
Also alle Dateien in /var/www/fcgi/*.ini
;default_charset = "iso-8859-1"
soll werden
default_charset = "iso-8859-1"
parameter in mehreren Dateien auf einmal ändern ...
-
- Posts: 366
- Joined: 2006-08-27 02:06
-
- Posts: 2138
- Joined: 2002-12-15 00:10
- Location: Bergheim
Re: parameter in mehreren Dateien auf einmal ändern ...
mit sed, xargs und find zusammen z.B.
-
- Posts: 150
- Joined: 2004-12-15 16:48
Re: parameter in mehreren Dateien auf einmal ändern ...
diff und patch könnten auch funktionieren, wenn die umliegenden Zeilen von ';default_charset = "iso-8859-1"' bei allen Inis gleich sind.
-
- Project Manager
- Posts: 11190
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: parameter in mehreren Dateien auf einmal ändern ...
default_charset will man weder bei PHP, noch bei Apache setzen, siehe jeweilige Doku...
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.