Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : QODBC, PHP, IIS, Windows Server 2003...queries from PHP not workingSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC Installation Support Forum

 New Topic 
 
 Post Reply 
[1]  
 QODBC, PHP, IIS, Windows Server 2003...queries from PHP not working 
 Author   Message 
  cedub 
  d78b0_flag_square.jpg
 Group: Members 
 Posts: 3 
 Joined: 2006-05-25 
 Profile
 Posted : 2006-05-25 02:54:40
I am attempting to set up my QODBC driver on Windows Server 2003.  I would like to be able to program in PHP.  The test file:  DisplaySQL.php found on the QODBC website does not work, but the ASP test file does.  Other PHP scripts work fine.  Any ideas? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-05-25 09:35:36

Check the connection string for example these are not the same:

DisplaySQL.asp does:
oConnection.Open "DSN=QuickBooks Data;OLE DB Services=-2" ''This is the name of your System DSN
oRecordset.CursorLocation = adUseClient
oRecordset.Open sSQL , oConnection, adOpenStatic, adLockOptimistic

while qbcust.asp does:
oConnection.Open "QuickBooks Data"
response.write "QODBC DSN QuickBooks Data Open<BR>" & vbCrLf
response.flush

oRecordset.CursorLocation = adUseClient
oRecordset.Open "SELECT * FROM Customer" , oConnection, adOpenStatic, adLockOptimistic

qbcust.asp is one of my scripts. There's a updated version of DisplaySQL.php that can be found at: PHP samples or help?

See: How can I see QuickBooks data in a Internet Explorer Browser using Windows XP?  for the setup info behind using QODBC via IIS. Most issues have to do with security setup. What type of security have you setup on the server? There can be all sort of permissions issues with IIS using AUTHENTICATED USERS. Sometimes the *shotgun* approach of giving everything that has the words QODBC in it is the only way....

See the last post in: Permissions Issue with IIS using AUTHENTICATED USERS 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to