you can try to specify your php.ini with php -c /path/to/php.ini Pablo
On Sun, Apr 5, 2009 at 5:02 PM, Frank He <[email protected]> wrote: > Definately! > In my web environment: > > I have these > > PDO > PDO support => enabled > PDO drivers => sqlite2, sqlite, mysql > > > But in my CLI, I don't have these, that is why my CLI can not use PDO > > In my web, I used customized php.ini, in which I added > extension=pdo.so > extension=pdo_sqlite.so > extension=sqlite.so > extension=pdo_mysql.so > > so PDO is included. > > I guess my hosting provider already compiled PHP with PDO support as shared > library, so adding these lines can import PDO. But unfortunately, in CLI, I > don't know how I can keep using my own php.ini. > > So does that mean only my provider can solve this issue instead of myself? > > > On Sun, Apr 5, 2009 at 4:54 PM, Pablo Godel <[email protected]> wrote: >> >> you need to check the rest of the output, there should be something >> like this down below in the output of php -i: >> >> PDO >> >> PDO support => enabled >> PDO drivers => sqlite2, sqlite, mysql >> >> >> Pablo >> >> >> On Sun, Apr 5, 2009 at 4:52 PM, Frank He <[email protected]> wrote: >> > I used redirect to output into a file and load the file into my >> > localcomputer >> > >> > php -i > output.txt >> > >> > after checking that file, it is the same as the web display: >> > >> > './configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' >> > '--enable-fastcgi' '--enable-ftp' '--enable-gd-native-ttf' >> > '--enable-libxml' >> > '--enable-magic-quotes' '--enable-maintainer-zts' '--enable-mbstring' >> > '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-zip' >> > '--prefix=/usr' '--with-bz2' '--with-curl=/opt/curlssl/' >> > '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' >> > '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/opt/openssl' >> > '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' >> > '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' >> > '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' >> > '--with-mhash=/opt/mhash/' '--with-mime-magic' '--with-mysql=/usr' >> > '--with-mysql-sock=/var/lib/mysql/mysql.sock' >> > '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/opt/openssl' >> > '--with-openssl-dir=/opt/openssl' '--with-pdo-mysql=shared' >> > '--with-pdo-sqlite=shared' '--with-pgsql=/usr' '--with-pic' >> > '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' >> > '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xmlrpc' >> > '--with-xpm-dir=/usr/X11R6' '--with-xsl=/opt/xslt/' '--with-zlib' >> > '--with-zlib-dir=/usr' >> > >> > From this, it seemed POD is already included, right? But if so, whey my >> > cli >> > still throw fatal error - PDO class is missing? >> > >> > On Sun, Apr 5, 2009 at 4:50 PM, Eno <[email protected]> wrote: >> >> >> >> On Sun, 5 Apr 2009, Frank He wrote: >> >> >> >> > php -i will give a huge display in my putty, and I can not find out >> >> > where is >> >> > PDO, there should be a command find or something, by which I can find >> >> > more >> >> > specifically for the PDO, can anyone tell me how to do to that? >> >> >> >> Learning some Unix comes in handy here. >> >> >> >> Maybe piping php -i into more or grep will help: >> >> >> >> php -i | more >> >> >> >> Or grep for pdo: >> >> >> >> php -i | grep PDO >> >> php -i | grep pdo >> >> >> >> >> >> >> >> >> >> >> > >> > >> > > >> > >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
