I was just trying to build a php cron script for my website, problem I got is that PDO seems to be unable to find the driver? I don't think any faults in my code, i have been using the database layer for a while now. So I think some setting in commandline php is causing this issue.
Any idea's or suggestions.?
Can you check the phpinfo() output and see if it's enabled on command line versus standard? If there is a difference then go ahead and submit a ticket to support and we can take a look.
Can you check the phpinfo() output and see if it's enabled on command line versus standard? If there is a difference then go ahead and submit a ticket to support and we can take a look.
Ok I will try that.
Ok i just did php info in the same script under command line and web and got different results for pdo.
Command line:
System => Linux a2s14.a2hosting.com 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 x86_64
Build Date => Oct 31 2006 19:10:06
Configure Command => './configure' '--enable-pic' '--with-apxs=/usr/local/apache/bin/apxs' '--with-libdir=lib64' '--
prefix=/usr/local' '--with-xml' '--with-mm' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-
dom-xslt' '--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-di
r=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap=/usr/local/imap-2004g'
'--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quot
es' '--with-mm' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pg
sql=/usr' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf'
'--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-wddx' '--with-xmlrpc' '--with-zip' '--with-zlib'
Web:
System Linux a2s14.a2hosting.com 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 x86_64
Build Date Oct 31 2006 23:24:37
Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-libdir=lib64' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pgsql=/usr' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-wddx' '--with-xmlrpc' '--with-zip' '--with-zlib' '--enable-soap' '--with-xsl' '--with-unixODBC=/usr' '--with-pdo-mysql' '--with-pdo-pgsql' '--with-pdo-sqlite' '--with-sqlite' '--with-gmp' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-tidy'
You'll need to submit a ticket so we can investigate further.