ID: 21674 Comment by: jot at agonize dot org Reported By: moderator at blackpeeps dot com Status: No Feedback Bug Type: *URL Functions Operating System: Cobalt RAQ4 Apache/Linux PHP Version: 4.3.0 New Comment:
this exact problem has spawned when i moved my php files from a webserver running a slightly earlier version of php to php 4.3.0 it would seem that files do not get included unless the absolute path is used in the include statement. Previous Comments: ------------------------------------------------------------------------ [2003-03-13 10:22:17] datsnice at bolt dot com What is wrong with the web site it tells me that I have already signed up and do not sign up twice, and I have never signed up before. It also tells me that my e-mail address already exist with someone else which it is not. ------------------------------------------------------------------------ [2003-02-26 09:28:36] hmm dot hmm at firemail dot de Hi I have the some problem :::: Warning: main(shop/index&main_kat=11&nr=.php) [function.main]: failed to create stream: No such file or directory in /home/admin/lala.com/index.php on line 260 Warning: main() [function.main]: Failed opening 'shop/index&main_kat=11&nr=.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/admin/lala.com/index.php on line 260 Can anyone help me? ------------------------------------------------------------------------ [2003-02-12 01:18:49] xilord at yahoo dot com Make sure you have the file names exactly correct and paths or you'll get the same error messages. ------------------------------------------------------------------------ [2003-02-04 16:49:32] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-01-22 22:25:22] [EMAIL PROTECTED] The point of asking for var_dump(ini_get('include_path')); is so you'll show the output of it. This is a form of debugging. The problem has to do with the include_path directive. Now we're trying to figure out why/where it gets set to '' before doing some of these includes as this seems to be the case. So, whenever you get this error: Warning: main() [function.main]: Failed opening 'foo.php'... Add this line above the include: var_dump(array(ini_get('include_path'),__LINE__,__FILE)); This way we'll know some useful information. Basically put this line above EVERY one of these failed includes, such as the inclusion config.php, extra.php, and lang.php. Please do this and show the output in your next reply. Btw, I modified Wez's debug dump a little so we can be a little more specific :) Also, be 100% sure you are not setting this directive in either httpd.conf or .htaccess. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21674 -- Edit this bug report at http://bugs.php.net/?id=21674&edit=1