I am in the midst of setting up a php script and I am getting the following error: Here is the relevant peice of code (where the error is supposed to be: Do you see any errors in the way this code is set up to create the tables? By the way, the script has a browser based installation procedure where you enter the db information.
the code looks rather correct, the error means that you attempted to use a method of the class Install that does not exist, or in short, the createTables() function might now be exitsing. it would help a lot if you could post the code for the Install class
OK, its a long one. In fact when I tried to post it I got an error saying that it was two long so I will have to break it up into two seperate posts:
nope, the createTables function is not there... i think based on structure alone... can you try replacing this line $inst->createTables with $sql->createTables
like on your first post this line $inst->createTables($_POST['db_host'], $_POST['db_name'], $_POST['db_user'], $_POST['db_pw']); replace the $inst with $sql $sql->createTables($_POST['db_host'], $_POST['db_name'], $_POST['db_user'], $_POST['db_pw']);
A question, a bit of a rare sight but what is the version of php there? scopes like that are only available in PHP4 as far as I know (I might be wrong) PHP5 changed the whole thing to another approach.
Differences.. maybe I'm still wrong... http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php (php4) http://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php (php5) Well, you can give it a try on a php4 free host and see if it installs, if it does well I guess it was the scopes.
Hmmm, well the script may have been written before PHP5 came out. In the Server Requirements it says PHP 4 or higher Here is the script I am working with http://paypalmemberscript.com/