Here's a tutorial I wrote for "hello world" programs on IBM i using Zend Core:
http://devzone.zend.com/article/10055
It gives examples of connecting to the IBM i in a PHP script. You do not need to require or include anything to make a connection. The necessary PHP files are already available inside the Zend Core.
See if you can get one of the hello world programs working. Then try to read a data area inside a working hello world script.
Kelly
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Tom Deskevich
Sent: Thursday, February 04, 2010 1:15 PM
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] Help trying to display a PHP variable within HTMLtags connection is not made
Ok, Grizzly, I tried to find the PHP error log. I give up. Where is it?
I know there are logs in the IFS that I have looked at, but just for
connection problems and such.
Tom Deskevich
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Grizzly Malchow
Sent: Thursday, February 04, 2010 1:36 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Help trying to display a PHP variable within HTMLtags
connection is not made
It's hard to say since I'm not sure what your code looks like now. In
theory, moving require('connection.php') and establishing the connection
before you try to use the i5_data_area_read function should solve your
original problem assuming there are no other errors. I assume you are not
seeing any errors on screen. Have you tried looking at the php error log?
As an Amazon Associate we earn from qualifying purchases.