Larry, here's a sample that might get you started. I am providing this one because it's complete, has error checking on the connect, and has the "require_once" statement that you are probably missing now. Remove the references to procedures/functions/return variables if they don't apply to your program.
http://www.alanseiden.com/2012/12/27/service-program-procedures-with-php-toolkit-for-ibm-i/

Best,
Alan
--
*Alan Seiden Consulting LLC*
PHP for IBM i expertise and advocacy

*Learn high-performance PHP on IBM i:*
* Let your Apps Fly with PHP on IBM i <http://iprodeveloper.com/let-your-php-apps-fly-ibm-i-high-performance-php-demand?promo=WP003XOE>


Project leader, Zend PHP Toolkit for IBM i
Zend Framework certified contributor

Office: 201-447-2437 Cell: 201-248-4704
http://www.alanseiden.com | alan@xxxxxxxxxxxxxx
http://twitter.com/alanseiden


Larry Kleinman wrote:
Thanks for the links. I am still having a problem. First off, I don't
see any samples at all. Nothing is in zendsvr6/htdocs except index.html,
dummy.php, and two Zend5250 directories. Also, i get a "class not found"
message for $ToolkitServiceObj = ToolkitService::getInstance($db, $user,
$pass);

Larry Kleinman
Kleinman Associates, Inc.
212-949-6469




From: Mike Pavlak<mike.p@xxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>,
Date: 08/25/2014 06:32 PM
Subject: Re: [WEB400] using zendserer toolkit
Sent by: "WEB400"<web400-bounces@xxxxxxxxxxxx>



And here:
https://www.zend.com/en/user/login?redirect=/en/webinars/recorded/show/293
_the+php+toolkit+from+zend+and+ibm

And here:https://github.com/zendtech/IbmiToolkit

And here:http://www.alanseiden.com/toolkit/

And more information available at the following events, maybe near you?

Hands On Workshops:
http://www.omniuser.org/TechConf2014Reg.html
http://systemideveloper.com/summit/conferences.html
http://www.data3.se/?page_id=2710

Presentations:
http://zendcon.com/
http://www.common.org/index.php/fall-conference-and-expo.html


Regards,

Mike Pavlak
Cell: (408)679-1011 Office: (708)233-5880


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Larry
Kleinman
Sent: Monday, August 25, 2014 3:16 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] using zendserer toolkit

Thanks. Just what I was looking for


Larry Kleinman
Kleinman Associates, Inc.
212-949-6469




From: Michael Ryan<michaelrtr@xxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>,
Date: 08/25/2014 03:08 PM
Subject: Re: [WEB400] using zendserer toolkit
Sent by: "WEB400"<web400-bounces@xxxxxxxxxxxx>



And maybe this specifically for the Toolkit...
http://files.zend.com/help/Zend-Server-6.3-IBMi/zend-server.htm#php_toolki
t_xml_service_functions.htm



On Mon, Aug 25, 2014 at 2:36 PM, Larry Kleinman<larry@xxxxxxxxxxxxxxxxx>
wrote:

Hi - I have been using Zend Server for years but am finally going to
switch from the i5_ functions to the tool kit that is part of the
basic software. I can not find the documentation anywhere on the Zend
site
that
tell me how to do simple stuff like calling an RPG program. Can
someone
point that out to me?

Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email:WEB400@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit:http://lists.midrange.com/mailman/listinfo/web400
or email:WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email:WEB400@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:http://lists.midrange.com/mailman/listinfo/web400
or email:WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email:WEB400@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:http://lists.midrange.com/mailman/listinfo/web400
or email:WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.