You are here: Re: installed pdo.so and pdo_mysql.so still no go « PHP Programming Language « IT news, forums, messages
Re: installed pdo.so and pdo_mysql.so still no go

Posted by eholz1 on 01/03/07 02:45

Hello Gordon --
stop and restart apache as well.
New sympton - rebuilt PHP 5.2 with sqlite as shared, and noticed that
the code, as php was building,
did seem to pick up the dir for the pdo.so and pdo_mysql.so files.

Now my error message is: Fatal error: Class 'PDO' not found in
/usr/local/apache2/htdocs/display_pets.php on line 63

my code to call PDO is:
$db = new PDO('mysql:host=localhost;dbname=menagerie',$dbuser,$dbpass);

I am open for suggestions!

Thanks,

ewholz

Gordon Burditt wrote:
> >I have installed via pecl using the following commands:
> >$ pecl install pdo (this seemed to do all the things it was supposed to
> >do)
> > then I entered the following command: $ pecl install pdo_mysql (this
> >seemed to be ok as well)
> >it placed the .so files in a dir
> >/usr/local/apache2/lib/php/extensions/no-debug-non-zts-20060613/
> >
> >both the pdo_mysql.so and the pdo.so files were there. (tried copying
> >them into /usr/local/apache2/lib/php/extensions/ )
> >
> >I am using fedora core 6, apache 2.2, and php 5.2 and mysql 5.027.
> >when I try to open a connection to the database, i still get a "driver
> >not found" error.
> >
> >the pdo_mysql name does not show up in my phpinfo() page, if I run it.
> >I have added the "extension=pdo.so" etc in my php.ini file.
> >
> >What am I still missing? do I have to reconfigure php??
>
> Did you stop and restart apache?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация