Date: 05/25/00
- Next message: Kirk Ismay: "Re: [phplib] connection pools for MySQL"
- Previous message: Holger Blasum: "Re: [phplib] Abrir y leer un Fichero Local"
- Maybe in reply to: Luca Accomazzi: "[phplib] Newbie help request (installation problem)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have other applications running that don't use PHPLIB (just haven't converted them) and what I did was include the following in the httpd.conf file (as I have control of the server):
<Directory /home/httpd/html/testarea/projects>
php3_magic_quotes_gpc on
php3_magic_quotes_runtime off
php3_magic_quotes_sybase off
php3_track_vars on
php3_auto_prepend_file /home/httpd/php/prepend.php3
php3_include_path /home/httpd/wplib:/home/httpd/php
</Directory>
Change the directory to wherever you want to put your files for your application and auto_prepend_file to where ever you have installed the library. With the include path I have folders under the document root for each application - any files that override the standard phplib files go in here e.g. local.inc with database name and password, specific functions for the application etc.
The benefit of this is that you can have a number of different applications running with PHPLIB and using different databases.
You can also do this with the .htaccess files but you will need to see the documentation on how to do this.
(Covered in the manual near the end of Chapter 2)
David Nind
>>> Luca Accomazzi <luca <email protected>> 25/05/00 >>>
Hi! Sorry to bother so soon... :-)
I'm installing PHPLIB on my test machine. It's a Unix box where I've been
using Apache, PHP 3.0.15 and MySQL for a few months.
Things stop working as soon as I change the auto_prepend directive in my
php.ini file. From that very moment, whenever I try to access a php page I
get the following response:
> Parse error: parse error, expecting `OLD_FUNCTION' or `FUNCTION' or `VAR' or
`'}'' in session.inc on line 1
If I remove the auto-prepend path things start working again,but (of course)
I can't use PHPLIB. If I use the include("prepend.php3") technique (as per
instructions 2.5), I get the very same error message on that page.
Help!
Luca
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Kirk Ismay: "Re: [phplib] connection pools for MySQL"
- Previous message: Holger Blasum: "Re: [phplib] Abrir y leer un Fichero Local"
- Maybe in reply to: Luca Accomazzi: "[phplib] Newbie help request (installation problem)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

