what does it mean “(include_path='.:/usr/share/pear:/usr/share/php')”?

后端 未结 7 2322
暗喜
暗喜 2021-02-18 16:31

I have file structure on EC2 like : but facing some file referencing problem.

index.php
-db
  -config.php
-cron
  -cron1.php

I have tried file

7条回答
  •  爱一瞬间的悲伤
    2021-02-18 17:19

    Actually, the solutions is to open the php.ini file edit the include_path line and either completely change it to

    include_path='.:/usr/share/php:/usr/share/pear' 
    

    or append the

    '.:/usr/share/php:/usr/share/pear' 
    

    to the current value of include_path.

    It is further explained in : http://pear.php.net/manual/en/installation.checking.php#installation.checking.cli.phpdir

提交回复
热议问题