[phplib] PHPlib and non-standard MySQL ports From: Mike Gifford (mike <email protected>)
Date: 09/27/00

Hello,

I'm trying to get phplib7.2c set up so that I can run PHPSlash and I'm
having a number of problems. I think that part of the reason for this
is that MySQL is running on port 4000 instead of the standard port.

The php4.0.0 info can be found here:
http://www.solangeharvey.com/test3.php3

In my poking through phplib, I didn't find any settings to configure the
port. PHPMyAdmin has this variable, and I am having no problem using
this interface to access the database. However, I am having a number of
problems with PHPlib & PHPSlash (neither of which seem to allow people
to add ports)

db_mysql is set as follows:
  /* public: connection parameters */
  var $Host = "db.netnation.com:4000";
  var $Database = "none";
  var $User = "none";
  var $Password = "none_of_your_business";

I've uploaded a number of the test scripts. None of them seem to be
working 100% (but they are doing more than some of my other pages)

http://www.solangeharvey.com/test2.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);
        ?>

Gives me this error:
        Fatal error: Cannot instantiate non-existent class: db_example in
/home3/solangeh/HTML/test2.php3 on line 4

But I'm not sure what result I should be expecting. I also get the
following errors from these test phplib pages:

http://www.solangeharvey.com/defauth.php3
Fatal error: Call to undefined function: page_open() in
/home3/solangeh/HTML/defauth.php3 on line 19

http://www.solangeharvey.com/index4.php3
Fatal error: Call to undefined function: page_open() in
/home3/solangeh/HTML/index4.php3 on line 16

http://www.solangeharvey.com/logout.php3
Fatal error: Call to undefined function: page_open() in
/home3/solangeh/HTML/logout.php3 on line 7

http://www.solangeharvey.com/probe.php3
Fatal error: Call to undefined function: page_open() in
/home3/solangeh/HTML/probe.php3 on line 5

http://www.solangeharvey.com/showoff.php3
Fatal error: Call to undefined function: page_open() in
/home3/solangeh/HTML/showoff.php3 on line 21

http://www.solangeharvey.com/test4.php3
Fatal error: Call to undefined function: page_open() in
/home3/solangeh/HTML/test4.php3 on line 2

What is up with this page_open() function?

Any suggestions would be useful.

Mike

-- 
Mike Gifford, OpenConcept Consulting, http://www.openconcept.on.ca
Offering everything your organization needs for an effective web site.
Ottawa's Municipal Election 2000 http://www.spcottawa.on.ca/
"These are not pretty times and the stakes are high." Susan George

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>