faqts : Computers : Programming : Languages : PHP : Database Backed Sites : ODBC

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

Why does a script from the command prompt work but not from the browser?

May 26th, 2006 12:40
Robert Butler, paul tolley,


Sorry not the answer but more information....

If I launch a script using the php.exe file the script runs with no 
problems, if I launch within the browser I get the following error

Warning: odbc_connect() [function.odbc-connect]: SQL error: Cannot find 
all files in data path, SQL state 08001 in SQLConnect in 
D:\www\apache\Apache2\htdocs\Database Stuff\odbc\db.php on line 15
Connection Failed:

----Edit----
This is probally an issue with permissions; seeing as the exe will run
as whatever accoutn you are logged in as, and the browser will run it as
an internet guest account.