View previous topic :: View next topic |
Author |
Message |
Zoszko Smarty Rookie
Joined: 28 Aug 2008 Posts: 5
|
Posted: Thu Aug 28, 2008 7:59 am Post subject: API Key Error |
|
|
Hi all!
I have an error message:
Fatal error: Class 'DB' not found in mywebpath/ wwwroot/GoogleMapAPI.class.php on line 1240
So i have an empty DB.php.
Please somebody write here an exapmle source code of DB.php
Thank You! |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Aug 28, 2008 1:25 pm Post subject: |
|
|
DB.php is from PEAR, make sure you have the PEAR DB module installed (as per the installation instructions.) |
|
Back to top |
|
Zoszko Smarty Rookie
Joined: 28 Aug 2008 Posts: 5
|
Posted: Thu Aug 28, 2008 6:36 pm Post subject: |
|
|
PEAR DB module ? I check my web server settings or what? Please help! Its very importannt to me. I use a web server pack ( Eazy File Sharing Web Server) its include apache"2"/php5/mysql/ftp/ and i don't change the sample config becouse it's working good with any CMS and I don't know what can I do to its works! |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Aug 28, 2008 7:12 pm Post subject: |
|
|
If you don't know how PEAR works, maybe check the documentation on PEAR at the php.net site. It might be as simple as (command line):
Otherwise, you can use your own database libraries that you are familiar with. The example just uses PEAR DB. |
|
Back to top |
|
Zoszko Smarty Rookie
Joined: 28 Aug 2008 Posts: 5
|
Posted: Thu Aug 28, 2008 7:38 pm Post subject: |
|
|
Well i install PEAR... but the error is alive. So if I not mistaken It do the mysql things reading/writing. What mus change in the source code to it woks in a simple webserver ? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Aug 28, 2008 7:44 pm Post subject: |
|
|
install pear, then install the DB pear module. Does that not work? |
|
Back to top |
|
Zoszko Smarty Rookie
Joined: 28 Aug 2008 Posts: 5
|
Posted: Thu Aug 28, 2008 11:24 pm Post subject: |
|
|
Well. Now I install PEAR and in the PEAR DIR I see a Db dir... i think I install the DB modul too. And now the erro message is:
Fatal error: Cannot access empty property in W:\web\GoogleMapAPI.class.php on line 1240
What can i do now ? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Aug 29, 2008 12:36 am Post subject: |
|
|
Did you set the DSN? |
|
Back to top |
|
Zoszko Smarty Rookie
Joined: 28 Aug 2008 Posts: 5
|
Posted: Sun Aug 31, 2008 10:39 am Post subject: |
|
|
I uninstall the web server and install an other one... and now it's work |
|
Back to top |
|
|