文档Note: There are reserved words which must not be used as keys for ini files. These include: null, yes, no, true, false, on, off, none. Values null, no and false results in "", yes and true results in "1". Characters {}|&~![()^" must not be used anywhere in the key and have a special meaning in the value. 也就是说"本身就不受支持的
test.ini如下"localhost"
123
456"dd"ddf
$filename = dirname(__FILE__)."/test.ini";
if (!file_exists($filename)){
die("XXX");
}Else{
$fp = fopen($filename,"r");
if (!$fp){
die("SSSS");
}Else{
echo trim(fgets($fp));echo "<br>";
echo trim(fgets($fp));echo "<br>";
echo trim(fgets($fp));echo "<br>";
}
fclose($fp);
}没有引号的问题
response_xml_header="<?xml version=\"1.0\" encoding=\"gb2312\"?>"是可以的但是5.2就不行,读出来会变成<?xml version=\1.0\ encoding=\gb2312\?>不知道为何是不是有什么固定格式呢?