This is a discussion on "Connecting to remote server/sage using php?" within the PHP Forum section. This forum, and the thread "Connecting to remote server/sage using php? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Connecting to remote server/sage using php?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Connecting to remote server/sage using php?
Hi there.
Just wondering if any of you have any suggestions/experience on connecting to sage using php. I know you need the odbc extension, which ive added to php.ini, and then ive done sudo aptitude install php5-odbc, which phpinfo() has picked up, but im trying to connect and get: SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQLConnect so I dont know if I need another driver or whatever? Also, i read you may need to edit odbc.ini in /etc/ this exists but is empty. The problem gets worse becuase you normally use code similar to: <?php $rConn = odbc_connect("SageLine50V10", "user", "pass"); $rRes = odbc_tables($rConn); odbc_result_all($rRes); odbc_close($rConn); ?> but we want to connect to a remote IP, instead of one on the same server running php. Any ideas please? Cheers |
|
|
|
|||
|
Re: Connecting to remote server/sage using php?
Did you add the data source using the instructions found at http://www.w3schools.com/php/php_db_odbc.asp ?
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble connecting to Sql Server 2005 Management Studio Express? | annawilsonz | Databases | 0 | Sep 14th, 2007 06:30 |
| asp.net installation on remote server | dave2006 | ASP.NET Forum | 1 | Feb 16th, 2007 18:46 |
| connecting to database | franknu | PHP Forum | 4 | Jul 23rd, 2006 08:39 |
| connecting to CSV file | madhuri.t | Classic ASP | 0 | Jul 10th, 2006 13:50 |
| connecting to web-email via pop using php... | Billydakid | PHP Forum | 7 | Feb 12th, 2004 08:42 |