I'm running MySQL 3.23.52 and PHP 4.2.3 on a Windows 98 with PWS.
My 'php.ini' file settings are as follows:
auto_prepend_file = c:\inetpub\php\prepend.php3
magic_quotes_gpc=On
magic_quotes_runtime=Off
magic_quotes_sybase=Off
include_path="C:\Inetpub\php"
doc_root =
I'm encountering several problems when trying to use phplib namely:
1) I can't seem to load the "index.php3" included with libphp-7.2d distribution:
I get the following error:
"Fatal error: Cannot redeclare class db_sql in C:\Inetpub\php\db_mysql.inc on line 12"
several lines from the db_mysql.inc file reads:
12: class DB_Sql {"
13:
14: /* public: connection parameters */
15: var $Host = "";
16: var $Database = "";
17: var $User = "";
18: var $Password = "";
first several lines of the local.inc file reads:
12: class DB_Example extends DB_Sql {
13: var $Host = "localhost";
14: var $Database = "kiss";
15: var $User = "root";
16: var $Password = "";
17: }
2) When I try to load the showoff.php3 file the first line is an error, but the page loads somewhat as the username & password textboxes would be available.
Notice: Undefined index: uid in C:\Inetpub\php\auth.inc on line 235
Test for Login
Welcome! Please identify yourself with a username and a password:
Username:
Password:
Login Now:
serveral lines from auth.inc file reads:
233: function is_authenticated() {
234: if (
235: $this->auth["uid"]
a) Although I am able to log in using 'kris' & 'test' as username & password respectively and the 'per session data' and 'per user data' variable increments whenever I refresh the page, several notices still appear within the pages referring to "undefined variable: row in c:\inetpub\php\table.inc on line XXX" error.
b) When I click on the LOAD link available after logging in, I get the following error: "Fatal error: Cannot redeclare class db_sql in c:\Inetpub\php\db_mysql.inc on line 12"
3) Doing some of the tests recommended in section 1.5 of the PHPLib Documentation (QuickStart) i also get the following errors:
a) Checking database connectivity:
I saved the following code in a file called "phplib.php3"
<?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);
?>
and tried to load the file, but I get the following error but the page still loads some relevant data:
Notice: Undefined variable: row in C:\Inetpub\php\table.inc on line 299
Notice: Undefined variable: col in C:\Inetpub\php\table.inc on line 568
user_id username password perms
c14cbf141ab1b7cd009356f555b607dc kris test admin
Hi!
I'm running MySQL 3.23.52 and PHP 4.2.3 on a Windows 98 with PWS.
My 'php.ini' file settings are as follows:
auto_prepend_file = c:\inetpub\php\prepend.php3
magic_quotes_gpc=On
magic_quotes_runtime=Off
magic_quotes_sybase=Off
include_path="C:\Inetpub\php"
doc_root =
I'm encountering several problems when trying to use phplib namely:
1) I can't seem to load the "index.php3" included with libphp-7.2d distribution:
I get the following error:
"Fatal error: Cannot redeclare class db_sql in C:\Inetpub\php\db_mysql.inc on line 12"
several lines from the db_mysql.inc file reads:
12: class DB_Sql {"
13:
14: /* public: connection parameters */
15: var $Host = "";
16: var $Database = "";
17: var $User = "";
18: var $Password = "";
first several lines of the local.inc file reads:
12: class DB_Example extends DB_Sql {
13: var $Host = "localhost";
14: var $Database = "kiss";
15: var $User = "root";
16: var $Password = "";
17: }
2) When I try to load the showoff.php3 file the first line is an error, but the page loads somewhat as the username & password textboxes would be available.
Notice: Undefined index: uid in C:\Inetpub\php\auth.inc on line 235
Test for Login
Welcome! Please identify yourself with a username and a password:
Username:
Password:
Login Now:
serveral lines from auth.inc file reads:
233: function is_authenticated() {
234: if (
235: $this->auth["uid"]
a) Although I am able to log in using 'kris' & 'test' as username & password respectively and the 'per session data' and 'per user data' variable increments whenever I refresh the page, several notices still appear within the pages referring to "undefined variable: row in c:\inetpub\php\table.inc on line XXX" error.
b) When I click on the LOAD link available after logging in, I get the following error: "Fatal error: Cannot redeclare class db_sql in c:\Inetpub\php\db_mysql.inc on line 12"
3) Doing some of the tests recommended in section 1.5 of the PHPLib Documentation (QuickStart) i also get the following errors:
a) Checking database connectivity:
I saved the following code in a file called "phplib.php3"
<?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);
?>
and tried to load the file, but I get the following error but the page still loads some relevant data:
Notice: Undefined variable: row in C:\Inetpub\php\table.inc on line 299
Notice: Undefined variable: col in C:\Inetpub\php\table.inc on line 568
user_id username password perms
c14cbf141ab1b7cd009356f555b607dc kris test admin
serveral lines from table.inc file reads:
299: $this->table_row_open($row, $d, $class);
300: $this->set_checkbox_heading($class);
301: $this->show_table_heading_cells($data, $class);
It says in the documentation that if the page doesn't load, "then your DB_Example definition in local.inc is broken"
Are my settings correct? I would appreciate any help in resolving this problem.
Regards,
Mabelle