windows 下有专门处理ini文件的函数,不知道php里有没有
但不管理如何,我想都可以把它读到数组中进行处理。

解决方案 »

  1.   

    1:如果真是ini文件
    array parse_ini_file ( string filename [, bool process_sections])parse_ini_file() loads in the ini file specified in filename, and returns the settings in it in an associative array. By setting the last process_sections parameter to TRUE, you get a multidimensional array, with the section names and settings included. The default for process_sections is FALSE 2:如果是普通文件
    提供思路
    fseek ( int fp, int offset [, int whence])找到字符所在
    用fgets ( int fp [, int length])读取
     然后是修改等
      

  2.   

    fopen.fclose
    fgets,fgets,fputs,fread,fwrite,fseek
    strrchr,strtok,split,explode,这些函数应该够了