×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Right now, I'm trying to make a simple "Hello World" style PHP script
connecting to the IBM i via i5_X functions. I can use the db2_X
functions to connect to the databases; just unable to use the i5_X
functions. I'm certain that I am not getting the right PHP Class
(require_once('iToolkitService.php');) Does anyone have a suggestion on
what this required file name should be? It's not in my current
directory, but appears to be in the
"ZENDSVR6\var\libraries\PHP_Toolkit_for_IBMI_i\1.5.0\library". I've
tried including the ToolkitService.php, with no success. I've been
reading, but struggling to get this to work.
For reference, I did install the XML Toolkit demo applications and those
seem to be working.
_*Error Messages (when running PHP Code)*_
When I run the PHP script, the following error is displayed:*
*
*Fatal error*: Call to undefined function i5_pconnect()
in*/www/zendsvr6/htdocs/DEV/helloworld/index.php*on line*60*
/* leaves connection without closing it. */
/* Make it available for another script. */
$ret = i5_close($conn);
if($ret){
echo " I5 disconnected";
}
else
{
$ret = i5_errormsg($conn);
}
?>
_*System Information*_
_*ZSMENU*_
Zend Server for IBM i 8.5.5 (PHP 5.6)
XML Toolkit 1.9.1
_*Zend Server Application Libraries*_
PHP Toolkit for IBMI i (1.5.0)
Symfony 2.3 (2.3.42)
Zend Framework 1 (1.12.8)
Zend Framework 2 (2.4.9)
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.