php5 include() problem
| From: | Al | Date: | Sun, 13 May 2007 16:22:34 +0000 |
| Subject: | php5 include() problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-254898@lists.php.net to get a copy of this message | ||
I've got a cgi file in my cgi-bin folder that I'm calling with include(). It worked with php4.
My shared host just upgraded to my server to php5.2.0 and the function doesn't work. I can't tell if the problem is a php5 or server configuration [which may have changed during the upgrade] issue.
If I call the file as a URL directly, it works.
http://www.foo.org/cgi-bin/file.cgi?dir=/test&perms=0755
file.cgi chmods the designated directory's permissions. It's a cgi with a php shebang #!/usr/bin/php
A simple file_exists() shows the file exists OK, TRUE.
I've tried using both syntaxes.
include("/home/foo/public_html/cgi-bin/file.cgi?dir=test&perms=0755");
include("www.foo.org/cgi-bin/file.cgi?dir=test&perms=0755");
Here is the error msg:
Warning: include(/home/foo/public_html/cgi-bin/file.cgi?dir=/test&perms=0755) [function.include]: failed to open stream: No such file or directory in /home/foo/public_html/EditPage/cgi_file_test.php on line 15Bottom line: It appears include() is not working right, for whatever reason. Anyone have any ideas? Thanks, Al........