我一直都闹不明白是什么原因..
因为我在自己配置好的环境下运行都没有问题
而放在别人傻瓜式安装的APAHCE+PHP的时候就有上面的问题出现
是不是php.ini有什么设置要改呢...

解决方案 »

  1.   

    是 inclue_once()   不是  inclue-once()
      

  2.   

    恩,这个问题没错的,我是刚一激动在这里给输写错误了,在程序里头是没错的.
    include_once
      

  3.   

    贴 出错代码.......-----------------------------------------------------------------------------------
                                                             msn: [email protected]
      

  4.   

    是不是inclue_once()的文件出错了?
      

  5.   

    <?php
    include_once("./path.inc");
    include_once($cfg['path']['root'].'include_header.php');
    require_once($cfg['path']['administrator'].'Mod_Include/application_top.php');
    $list = new Controll;
    $list -> template ='Dance_Shoe/header.html';
    $list -> image_path=$cfg['theme']['images'];
    $list -> products_image_path =$cfg['path']['images']."products/";
    $list -> button_path=$cfg['language_button']['dir'];
    $get_input = $list->input();
    ?>
      

  6.   

    很确定代码没有问题.因为同样的程序在正常配置的环境下都运行正确
    现在问题就是用了傻瓜式安装环境,是否需要改动php.ini之类的配置来支持PEAR呢
      

  7.   

    那时阿,你的PEAR的目录要在PATH下
      

  8.   

    恩,PEAR的路径也有设置好的
    现在有一个问题就是PEAR装好之后才可以用include_once()是吗?
    可是我没有任何的错误提示啊.
    唉,,,快疯了,怪异的问题..
      

  9.   

    出错了,有提示现在..
    是:Parse error: parse error, unexpected T_CLASS in f:\usr\www\html\dancingshoe\Library\php\session.php on line 84Notice: Constant Z_Cart_TABLE_ORDER_PRODUCT already defined in f:\usr\www\html\dancingshoe\Library\php\database_filename.php on line 45Notice: Constant MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING already defined in f:\usr\www\html\dancingshoe\Administrator\Mod_Include\application_top.php on line 19
      

  10.   

    帮不上啊
    先从php基础配起吧
    程序应该有说明的
    这样错误应该说明,可以解析php了但是你的环境配置是什么没有说