, 2010 21:20
Subject: [PHP] PDO working via Apache but not at the command line?
To: p...@lists.php.net, php-general@lists.php.net
I have the following very simple script that uses PDO/FreeTDS to connect
to a mssql server. I have PHP Version 5.3.3 running on Linux under
Apache. When I view
On 10/18/2010 02:17 PM, a...@ashleysheridan.co.uk wrote:
It's most likely because both cli and web modules are using different
php.ini config files. See what the output of a phpinfo() call in both
browser and command line.
I didn't even think about it parsing different php.ini files. Checking
Things to check:
- Environment: what env vars are set or not set in your Apache vs. CLI
- Owner: are you running as the same user as your web server?
- Do you or the web server have some kind of rc file that might
impact how things run?
Suggestion:
Use sudo -u webserverusername -s to run a
On 10/18/2010 06:27 PM, Wez Furlong wrote:
Things to check:
- Environment: what env vars are set or not set in your Apache vs. CLI
- Owner: are you running as the same user as your web server?
- Do you or the web server have some kind of rc file that might impact
how things run?
Wez you're
Sounds like the error message SQLSTATE[HY000] Unable to connect:
Adaptive Server is unavailable or does not exist (severity 9) could
be more informative, but I think this is returned by FreeTDS, not PDO.
On Mon, Oct 18, 2010 at 7:35 PM, Scott Baker bak...@canbytel.com wrote:
On 10/18/2010 06:27
5 matches
Mail list logo