IMP 2.2.3 and php 4.0.3pl1
John McCoy, Jr
jmccoy@mills.edu
Fri, 3 Nov 2000 13:38:53 -0800
Specs: Solaris 7 Sparq, Horde 1.2.3, MySQL 3.22.32, IMAP c-Client 4.1c,
Apache 1.3.14
I am having a problem where phplib does not work on files that end in .php3
but works fine for .php.
If I go to http://server/test.php (a copy of test.php3) it looks fine
If I go to http://server/test.php3 I get
Warning: Failed opening '/usr/local/apache/htdocs/horde/test.php3' for
inclusion (include_path='.:/usr/local/apache/php') in Unknown on line 0
>From test.php if I click on the test phplib for Horde I get the same error.
I noticed the URL changed back to test.php3?mode=phplib-horde. If I remove
the 3 it works fine, the counter increases and everything.
I get the same results from phpinfo()
I have not edited my php.ini file, didn't look like I needed to.
Here is http.conf stuff:
# Added for Horde
<Directory /usr/local/apache/htdocs/horde>
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
<IfModule mod_php3.c>
php3_include_path '.:/usr/local/apache/php'
php3_auto_prepend_file /usr/local/apache/php/prepend.php3
php3_magic_quotes_gpc Off
php3_track_vars On
</IfModule>
<IfModule mod_php4.c>
php_admin_value include_path '.:/usr/local/apache/php'
php_admin_value auto_prepend_file
/usr/local/apache/php/prepend.php3
php_admin_flag magic_quotes_gpc Off
php_admin_flag track_vars On
</IfModule>
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.html
DirectoryIndex index.php
DirectoryIndex index.php3
</IfModule>
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Here is preprend.php3
if (empty($_PHPLIB) || !is_array($_PHPLIB)) {
# Aren't we nice? We are prepending this everywhere
# we require or include something so you can fake
# include_path when hosted at provider that sucks.
$_PHPLIB["libdir"] = "";
}
require($_PHPLIB["libdir"] . "db_mysql.inc"); /* Change this to match your
database. */
require($_PHPLIB["libdir"] . "ct_sql.inc"); /* Change this to match your
data storage container */
require($_PHPLIB["libdir"] . "session.inc"); /* Required for everything
below. */
/* Additional require statements go below this line */
/* Additional require statements go before this line */
require($_PHPLIB["libdir"] . "local.inc"); /* Required, contains your
local configuration. */
require($_PHPLIB["libdir"] . "page.inc"); /* Required, contains the
page management functions. */
*************************************
John McCoy, Jr
Campus Systems Administrator
Central Systems, Mills College
510-430-3321
jmccoy@mills.edu
*************************************