NYCPHP Meetup

NYPHP.org

[nycphp-talk] DB connection - web vs. command line?

Freedman, Tom S. tfreedma at ubspw.com
Thu Jan 9 15:14:21 EST 2003


Nevermind, I was dumb and didn't check to make sure the database was defined
as a System DSN.  It seems IIS automagically resolves the database name,
whereas PHP counts on the data source being registered with the system.

Thanks anyway! :-)
-Tom

-----Original Message-----
From: Freedman, Tom S. 
Sent: Thursday, January 09, 2003 2:42 PM
To: NYPHP Talk
Subject: [nycphp-talk] DB connection - web vs. command line?


Hi all,

I've run into another weird one.  I'm using PHP 4.1.2 to connect to SQL
Server 2000.  If I run the page from IIS, it connects to the DB just fine
and runs a stored procedure.  If I execute the same page via the command
line, it dies on the connection attempt (mssql_connect()).  Anyone run into
something like this?  I can't figure out why they'd behave differently.

Thanks in advance!
Tom


--- Unsubscribe at http://nyphp.org/list/ ---




More information about the talk mailing list