ID: 11493
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Scripting Engine problem
Operating system: SunOS 5.7
PHP Version: 4.0.5
Description: Having issues include_path and auto_prepend_file
This is the contents of my auto_prepend_file, but this isn't giving me the issues:
<?php
if( !isset($username) ){
print "<html>\n";
print "<head>\n";
print " <title>Login</title>\n";
print "</head>\n";
print "<body>\n";
print "<p align=\"center\">\n";
print " <font size=\"+4\" color=\"red\">Please Login</font>\n";
print "</p>\n";
print "<center>\n";
print "<form action=/cgi-bin/python.py method=POST><br>\n";
print " Please enter your Username: <input type=\"text\"
name=\"usrname\"><br>\n";
print " Please enter your Password: <input type=\"password\"
name=\"passwrd\"><br>\n";
print " <input type=\"Submit\" value=\"Login\"><br>\n";
print "</form>\n";
print "</center>\n";
print "</body>\n";
print "</html>\n";
exit;
}
?>
If there is no cookie set, it will show the login form and stop the browser from
showing any more of the content of the rest of the page. If there is a cookie set,
then don't show the login form and show the user the actual page they wanted to see.
As for a script to reproduce this problem on your end, I'm not sure that's entirely
possible. From the discussions I've had with numerous people regarding this issue,
the three systems that these people have seen this problem on are Solaris 7 and 8, and
Sparc, all using the GCC compiler. I myself am using Solaris 7 with the GCC compiler.
Now, I don't believe I can possibly give you a script to reproduce this. Simply
because this is an issue with the php.ini file and the PHP interpreter, rather than a
page I might have made in PHP to do a specific task/function. All I can offer as a
suggestion is the following:
On a Solaris 7 machine with the GCC compiler, create a file for use as your
auto_prepend_file(set in php.ini), then in a subdirectory of what you set as the
prefix of your web server, in my case '/usr/local/apache/htdocs/' and then put a file
in a subdirectory of that and try to view it through your browser. There's no real
script that I can write to show you this.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-16 11:08:28] [EMAIL PROTECTED]
Please include a short example script that can be used
to reproduce this. What is in the file that is auto_prepend_file ??
---------------------------------------------------------------------------
[2001-06-15 13:40:32] [EMAIL PROTECTED]
I'm sorry, but I unfortunately don't know what you mean by that? Do you want my
php.ini file? I'd try and let you see the page I'm attempting to do this on, but it's
located on one of the server's in my company's intranet section. I'll explain what
I'm doing for now, and maybe that will help.
I edit my php.ini file in /usr/local/lib and change the include_path variable, then
save those changes. Then I stop my webserver and restart it
(/usr/local/apache/bin/apachectl stop/start). The changes in the error msg are
reflected immediately at this point when I try to view the webpage. And again, this
works fine if I try to view a webpage located in the htdocs directory, but any file
located in a subdirectory of htdocs produces this error.
---------------------------------------------------------------------------
[2001-06-15 11:43:20] [EMAIL PROTECTED]
I just tried this, and it works for me just fine.
You don't need every single directory in include_path..
That was bullshit. I should have tested it immediately.
Can you add short script into this report that reproduces this?
---------------------------------------------------------------------------
[2001-06-15 08:55:39] [EMAIL PROTECTED]
Okay, I changed my include_path appropriately, and here is the new message I saw:
Warning: Failed opening '/usr/local/apache/htdocs/chat/httpd/index.html' for inclusion
(include_path='.:/usr/local/apache/htdocs:/usr/local/apache/htdocs/chat:/usr/local/apache/htdocs/chat/httpd:/usr/local/apache/htdocs/chat/httpd/images:/usr/local/apache/htdocs/chat/httpd/mschat:/usr/local/apache/htdocs/chat/httpd/pchat:/usr/local/apache/htdocs/chat/httpd/plynx:/usr/local/apache/htdocs/chat/httpd/scripts:/usr/local/apache/htdocs/chat/httpd/ticker:/usr/local/apache/htdocs/chat/httpd/help:/usr/local/apache/htdocs/chat/httpd/evendchat')
in Unknown on line 0
I included every single directory possible within htdocs, chat, and httpd. Chat being
the only folder under htdocs, and httpd being the only one under chat. As you can
see, it is still having issues with the include path. Any ideas on this?
---------------------------------------------------------------------------
[2001-06-14 17:11:00] [EMAIL PROTECTED]
You need to add every directory into the include_path.
This is how it works. Maybe it will be changed sometime.
But not in near future.
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the
comments, please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=11493
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]