Hello,

i have enable the Pear library on my windows server but now someone is expiring problem with php like this site:

Warning: main(modules/login.php): failed to open stream: No such file or directory in E:\Domains\domain.com\wwwroot\platform\case\case.php on line 124

Warning: main(): Failed opening 'modules/login.php' for inclusion (include_path='c:\php\pear') in E:\Domains\domain.com\wwwroot\platform\case\case.php on line 124

Warning: main(modules/menu.php): failed to open stream: No such file or directory in E:\Domains\domain.com\wwwroot\platform\case\casemenu.php on line 95

Warning: main(): Failed opening 'modules/menu.php' for inclusion (include_path='c:\php\pear') in E:\Domains\domain.com\wwwroot\platform\case\casemenu.php on line 95

this site dont use PEAR but i dunno why it show in the inlcude path

to enable pear i have add the path in the include path of the php

thx for the help!

    PEAR is showing in the include path because you enabled PEAR. In the course of doing so, you also disabled PHP's automatic searching of the directory the script was located in.

    In php.ini:

    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Windows: "\path1;\path2"
    include_path = ".;c:\php\pear;"
    

    That lists the directories PHP will look in for include files. You're missing the "." (the "current directory").

      Write a Reply...