The phpbuilder archives has previous questions about warnings for missing variables when using PHPLib with PHP 4 on Win32 with Apache. The only answer given was to check the include path. I am getting an install that works in some respects (finding the prepend file and the include files) but not others. In my case, PHP is running as an Apache module.
First attempt to open index.php3 in the host root directory always fails, but always works on the second attempt. Reloading this page does increment the counter, showing that cookie sessions are working.
However, the docs say that the "val" field of the MySQL will change on each reload. It doesn't, but the "change" field does.
Opening the example login script (show_off.php3) displays two warnings for undefined properties and won't allow a login. The active_sessions table shows no "Example_User" record added, as the docs say should happen (do the docs mean the auth_user table? Not there, either.).
I ran two test scripts from the docs:
This works:
<?php
$db = new DB_Example;
print "It works without error messages.<br>\n";
?>
But the following gives a bunch of warning messages about undefined properties. All the warnings are from one file: table.inc, which indicates to me that the include path is working, but something's wrong with the database interface. However, the output does show correctly, only with a bunch of warnings beforehand.
<?php
include("table.inc"); // requires include_path to be functioning
$db = new DB_Example;
$db->query("select * from auth_user");
$t = new Table;
$t->heading = "on";
$t->show_result($db);
?>
Magic_quotes is turned on.
I put the include path in local.inc as well as in php.ini.
Using PHP 4.0.6, PHPLib 7.2d, Apache 1.3.24
Suggestions??