Skip to content

Files

samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 23, 2020
Sep 27, 2024
May 9, 2022
Sep 11, 2020
Aug 31, 2023
Feb 9, 2024
Feb 28, 2024
Jul 2, 2021
Feb 16, 2024
Oct 14, 2022
Dec 13, 2023
Feb 17, 2024
Jan 15, 2021

PHP Toolkit sample scripts

  • call-procedure.php: Complete example of calling an RPG procedure (service program)
  • connect_pdo_odbc.php: How to connect to the toolkit using PDO_ODBC
  • data-structure-array-with-counter.php: Efficient way to receive an array of data back
  • data-types.md: Reference guide to XMLSERVICE data types and equivalent PHP Toolkit functions
  • display-library-list.php: Get results back from an "interactive/5250" CL command.
  • local-transport.php: Uses xmlservice-cli to make a program call without needing a database connection.
  • omit.php: When an RPG program makes a parameter optional by specifying OPTION(*OMIT), this snippet shows how to to specify on the PHP side that the parameter will not be passed.
  • options.php: Connection options, both basic and advanced. Recommended reading.
  • ssh-transport.php: Uses the SSH transport for connecting to the toolkit. Ideal for running the toolkit on a PC or other system and connecting to a remote IBM i.
  • simple-parameters.php: Example with ordinary parameters only; no data structures, arrays, or procedure return values.
  • classic folder: Contains the original Zend Server examples from 2011. For historical purposes only.