bradliberty895 wrote:I would like to connect to DB2 on i from PHP. I have done this regularly when the PHP environment was running on my AS400. But now I have a situation where the PHP environment is on a totally different (Linux) web server. And I want to connect to DB2 on AS400. Can I somehow copy the db2_connect functions from my PHP environment on i and bring them to my Linux server?
erich_hieden wrote:"internal server error" could be anything, from a missing semicolon to a misconfigured db-connection. Please take a look at php.log either via ZendServer Admin GUI or at /usr/local/zendsvr/var/log.
erich_hieden wrote:This either means that you're using the wrong syntax (lib/table vs. lib.table), which seems ok in your case, or that the table simply doesn't exist in the requested library. Try running the exact same SQL query directly in a 5250 session using STRSQL.
erich_hieden wrote:Hmmm.... normally it should work.
Have you checked the version of your db2 extension? You need at least 1.5.1 for i5_naming and 1.8.0 for i5_libl (see db2_connect)
If these requirements are met, try using db2_connect and the likes as standalones, aka without ZendFramework. Just write a small test script to check if i5_naming is used or not.
Users browsing this forum: No registered users and 1 guest