Does anyone know if Apache config files need to be modified to accommodate PHPLIB?
Apache and PHPLIB config
Hey Pete,
Still having problems? As far as I know only the php.ini needs to be altered. Here is a tidbit from the installation instructions that come with phplib.
"Get to the php3.ini file for your web server's PHP interpreter and update the include_path statement so that it points to that php (phplib) directory. Update the auto_prepend_file statement so that it points to the prepend.php3 file in that include directory."
You can find more info about php.ini file under:
http://www.phpbuilder.com/manual/configuration.php#configuration.file
If you follow these instructions then you will be loading all of the phplib functionality with every call to a php page. Why don't you just fish out the code you need and paste it into your code?
Scott
Thanks Scott;
According to the manual, if the fist 2 steps in the "Testing" portion work, then both the include path in php.ini and the auto_prepend_file=" __" should be A-OK.
These 2 tests work for me, it's the 3rd test, checking for sessions functionality by calling index.php3 that throws up the DNS-cannot find server, Page unavailable screen. Thus my confusion. So, I'm starting from the beginning again!!
Thanks, keep checking in...
Pete
I looked through the documentation and couldn't find what you're talking about. Could you explain a little more in detail?
I was just wondering if you moved the files under "pages" to your document root.
Scott
The TESTING portion of the documentation is pages 5,6,7,8 and 9 of the Quick Start in the PHP Base Library Documentation.
http://phplib.netuse.de/documentation/documentation-1.html
The files in PAGES have been removed from PAGES and placed in htdocs
Pete
When you request http://127.0.01/ what do you get?
I get the generic Apache successful install message, even though I have index.pjp3 in there. When I put index.html in htdocs I get that instead.
Apache httpd.conf file has :
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php index.php3
</IfModule>
And at the very end of the httpd.conf file I have:
ScriptAlias /php4/ "C:/php4/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php4/php.exe"
AddType application/x-httpd-php .php3
The very last line ----^ is supposed to allow PHP4 and PHP3 scripts to be read.
Again, thanks for your help,
Pete
OK--after much frustration I finally got PHPLIB to function as explained in the Quick Start documentation.
Some suggestions: Check your installation using Netscape, IE has some peculiarities, if it works in Netscape at least you know that the install is ok.
In IE set your browser to check the page every visit.
RE: Undefined variable sid when accessing index.php3, I added $sid to the globally declared variables for function release_token around line 393 PHPLIB7.2c.
Good luck