Re: Connect to AS400
| From: | James Lobley | Date: | Fri, 27 Jan 2006 00:12:47 +0000 |
| Subject: | Re: Connect to AS400 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229353@lists.php.net to get a copy of this message | ||
On 1/26/06, Justin Cook <jcook@mwenergy.com> wrote:
>
> We need to connect to a database on our AS400. Would this be best
> accomplished with ODBC? If not, what is the preferred method? Thanks!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Talking from a Windows point of view, you will need the AS400 Client Access
software (or similar - I think it has a new name now!) installed on the
machine you are trying to connect from.
Once this is done, you need to set up a data source in ODBC - System DSN
works best, then use the standard ODBC calls within PHP to access the
database.
If you need further detail, I should be able to help you once I get to work
in about 8 hours!