[PHPLIB] .htaccess problem fixed, new one has risen :) From: Billy Childish (php4 <email protected>)
Date: 02/01/00

This is the error im getting, when pulling up index.php3 in the pages
dir....
Fatal error: Cannot redeclare class db_sql in db_mysql.inc on line 12

Any ideas out there?

I could never get phplib to work with php3. Im good friends with the web
admin at my ISP, so we went through everything and could never get the
.htaccess from 500 error'in. Wierd. However we have a test box with PHP4
on it and we did manage to get that to work with an .htaccess, here's my
version in case it can help anyone out there..

#
# Use for PHP3
#
#php3_auto_prepend_file
"/home/sh/shagy/public_html/php/include/prepend.php3"
#php3_include_path "/home/sh/shagy/public_html/php/include"
#
# Use for PHP4
#
php_value auto_prepend_file
"/home/sh/shagy/public_html/php/include/prepend.php3"
php_value include_path "/home/sh/shagy/public_html/php/include"

Note, could not get it to work for PHP3, but there's no reason I can figure
out why it didnt work.

If there's anyone who can figure it out please let me know.

here's a portion of the httpd.conf from apache. The only thing we figured
we needed to add was 'Indexes' to the AllowOverride.

<Directory /home/*/*/public_html>
    DirLogAllow on
    Options +Includes -FollowSymlinks +SymLinksIfOwnerMatch +ExecCGI
+Indexes
    AllowOverride AuthConfig FileInfo Limit Indexes
    Order deny,allow
    Allow from all
</Directory>

The php.ini has auto_prepend_file set to nothing same goes for include_path.
Is that right?

Im beginning to doubt that I have this working in PHP4 either, considering
the goofball errors im getting.

If anyone can lend me a hand, I would really appreciate it. I really want
to use this.

-Billy

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.