parse_ini_file(), not accepting ampersands (&)
Posted: Fri Mar 30, 2007 2:23 pm
I asked about this in another post but I must not have been clear enough with my problem.
if there is an ampersand in the ini file which i parse, the result =0
The result is correct if you take the & out of the ini file. It also has problems with apostrophes and other chars. How can around this?
I cant get it to read any further.
if there is an ampersand in the ini file which i parse, the result =0
The result is correct if you take the & out of the ini file. It also has problems with apostrophes and other chars. How can around this?
I cant get it to read any further.
Code: Select all
$ini = parse_ini_file('File.ini');
$un=$ini['UNITNAME'];Code: Select all
[IBERTECH]
TWENTYFIVEHOURCLOCK=TRUE
AUTOEODCLOCKOUT=TRUE
EDITCLOCKIN=TRUE
;Directories
UNITNUMBER=1
UNITNAME=Joe's Pizza & Pasta
ADDRESS1=6860 S. Abc Way.
ADDRESS2=Greenwood,CO 80112
[REPORT]
PRINTFULLCARD=1