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 15
Bottom line: It appears include() is not working right, for whatever reason.
Anyone have any ideas?
Thanks, Al........
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php