可以试试ini_set(PHP 4, PHP 5)
ini_set -- Sets the value of a configuration option

解决方案 »

  1.   

    具体的设置,你可以写个页面phpinfo();这样你就可以看到你哪些值已设置或设置成功了
      

  2.   

    不是ini文件了,看清楚问题哦,就是分析一个php文件,自己顶下,最好哪个大牛给个源代码,谢谢咯
      

  3.   

    no need to edit the file, add "$a=4;" after you include the config.php file.or you can use:fopen();
    ...
     preg_replace('/\$a\=.+?\;/isU',$value,$str);
    fwrite();
      

  4.   

    $s = file_get_contents('config.php');preg_match_all("/(\w+)\s*=\s*(.+);/", $s, $r);foreach($r[1] as $i=>$k) {
      $v = $r[2][$i];
      echo "name=$k value=$v\n";
    }
      

  5.   

    在老大的基础上改了版,呵呵
    将'config.php'中的"$a=1;"改成"$a=15;"<?
    $s = file_get_contents('config.php');preg_match_all("/(\w+)\s*=\s*(.+);/", $s, $r);foreach($r[1] as $i=>$k) {
      $v = $r[2][$i];
      echo "name=$k value=$v\n";
    }$t = preg_replace("/[a]\s*=\s*(.+);/","a = 15;",$s);.....file_put_contents ('config.php',$t); 
    ?>