Replacing a value in a flat file
Posted: Mon Dec 14, 2009 5:16 am
Hi,
I haven't done much php before. Im using PHP 4.2
I have a file which looks like
[UserFile]
Password=202cb962ac59075b964b07152d234b70
Company=test
Account=rwe111
Language=polish
Partner=Customer
I would like to replace the language with Polish.
I have my two values
$language = polish
$nlanguage = english
I have hunted around for a solution but they seem to throw errors on the preg_match because of the Lanuage=polish.
Would anybody be able to point me in the right direction?
Thank you very much in advance.
I haven't done much php before. Im using PHP 4.2
I have a file which looks like
[UserFile]
Password=202cb962ac59075b964b07152d234b70
Company=test
Account=rwe111
Language=polish
Partner=Customer
I would like to replace the language with Polish.
I have my two values
$language = polish
$nlanguage = english
I have hunted around for a solution but they seem to throw errors on the preg_match because of the Lanuage=polish.
Would anybody be able to point me in the right direction?
Thank you very much in advance.