Transfer of Code from PHP-Winxp to PHP-Freebsd
Posted: Fri Aug 04, 2006 8:20 am
Hello,
I have designed a website on my local windows Xp machine with IIS and php 5.
What are the proper steps for uploading these files into a webserver with FreeBSD.
The website I've created has a framework directory plus the PEAR and PHPLIB directory and makes use of them.
For each page in website, they have an independent folder and its all object oriented, dependent on the framework and the two libraries mentioned.
Everything was working fine on my Win xp machine, but when I uploaded the same files and folder to my webserver online which runs on FreeBSD I ran into tons of erros, and now I'm stuck and need help.
First thing which I know I had to change was the files path in the code, the INI_SET code I also changed it to the Linux version.
But now I'm stuck with this error on my webpage:
Fatal error: Call to undefined function: query() in /home/cdcasia/public_html/framework/class.DBI.php on line 66
can anyone tell me what this means...
For the sake of protability I installed Apache on my Local machine, since the Apache was the latest version, I also had to install PHP 5.2 to have the PHPApache2_2.dll file.
Then I did the same change to the code and ran it on Apache on my local machine and I get this error:
Fatal error: Call to undefined method DB_Error::query() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\IDIS\framework\class.DBI.php on line 66
on the online server it says, call to undefined function, but on my local machine it says call to undefined method?? how come?
Can anyone help me with this?
How come the same code works totaly fine on my IIS????
thanks in advance
I have designed a website on my local windows Xp machine with IIS and php 5.
What are the proper steps for uploading these files into a webserver with FreeBSD.
The website I've created has a framework directory plus the PEAR and PHPLIB directory and makes use of them.
For each page in website, they have an independent folder and its all object oriented, dependent on the framework and the two libraries mentioned.
Everything was working fine on my Win xp machine, but when I uploaded the same files and folder to my webserver online which runs on FreeBSD I ran into tons of erros, and now I'm stuck and need help.
First thing which I know I had to change was the files path in the code, the INI_SET code I also changed it to the Linux version.
But now I'm stuck with this error on my webpage:
Fatal error: Call to undefined function: query() in /home/cdcasia/public_html/framework/class.DBI.php on line 66
can anyone tell me what this means...
For the sake of protability I installed Apache on my Local machine, since the Apache was the latest version, I also had to install PHP 5.2 to have the PHPApache2_2.dll file.
Then I did the same change to the code and ran it on Apache on my local machine and I get this error:
Fatal error: Call to undefined method DB_Error::query() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\IDIS\framework\class.DBI.php on line 66
on the online server it says, call to undefined function, but on my local machine it says call to undefined method?? how come?
Can anyone help me with this?
How come the same code works totaly fine on my IIS????
thanks in advance