PHP Batch Jobs on IBM i  |    |  41
Alan Seiden, Strategic Business Systems
How to automate it?
Add a job schedule entry (ADDJOBSCDE) for your 
CL program
The CL will act like a normal CL program, which it is!
(In the UNIX world they call this a “CRON JOB.”)
Pdf image text extractor - Select, copy, paste PDF images in, ASP.NET, MVC, Ajax, WinForms, WPF
Support PDF Image Extraction from a Page, a Region on a Page, and PDF Document
how to extract images from pdf files; extract jpg from pdf
Pdf image text extractor - VB.NET PDF Image Extract Library: Select, copy, paste PDF images in, ASP.NET, MVC, Ajax, WinForms, WPF
Support PDF Image Extraction from a Page, a Region on a Page, and PDF Document
online pdf image extractor; extract color image from pdf in c#
PHP Batch Jobs on IBM i  |    |  42
Alan Seiden, Strategic Business Systems
Receive params in 
VB.NET TIFF: TIFF Text Extractor SDK; Extract Text Content from
Standalone VB.NET TIFF text extractor SDK that extracts can easily integrate this TIFF text extraction control SDK into VB.NET image application by
extract images from pdf; extract jpeg from pdf
VB.NET TIFF: TIFF to Text (TXT) Converter SDK; Convert TIFF to
developers to interpret and decode TIFF image file convert all TIFF page into one text file to provide powerful & profession imaging controls, PDF document, tiff
how to extract text from pdf image file; pdf image extractor online
PHP Batch Jobs on IBM i  |    |  43
Alan Seiden, Strategic Business Systems
Command-line arguments in PHP
When we use PHP in a website, we receive 
parameters using the $_GET and $_POST arrays
How do we get parameters/arguments when PHP is 
called from the command line or a CL?
VB.NET PowerPoint: Extract & Collect PPT Slide(s) Using VB Sample
demo code using RasterEdge VB.NET PowerPoint extractor library toolkit. provide powerful & profession imaging controls, PDF document, image to pdf files and
how to extract a picture from a pdf; pdf image extractor
VB.NET Word: Extract Word Pages, DOCX Page Extraction SDK
this VB.NET Word page extractor add-on can be also used to merge / split Word file, add / delete Word page, sort Word page order or insert image into Word page
extract vector image from pdf; pdf image extractor c#
PHP Batch Jobs on IBM i  |    |  44
Alan Seiden, Strategic Business Systems
Two special variables
$argv: array of arguments
 $argv[0] is always the PHP script name itself, e.g. helloworld.php
 $argv[1], $argv[2], and so on are the actual arguments
$argc: count (how many) of arguments
• Use it to check that you’ve received what you expected
C# Word: How to Extract Text from C# Word in .NET Project
is the complete Visual C# sample code for extracting text from a to provide powerful & profession imaging controls, PDF document, image to pdf files and
some pdf image extract; extract photo from pdf
PHP Batch Jobs on IBM i  |    |  45
Alan Seiden, Strategic Business Systems
Demonstrate argc and argv to get CLI params
// args.php
// remember, [0] is the script itself.
echo "\n"; // blank line
// check argument count
if ($argc > 0) {
echo $argc . " argument(s) received, including the script name 
foreach ($argv as $num=>$val) {
echo "arg $num: $val\n"; 
} else {
echo "We should have had at least one argument: the script name 
// usage: /usr/local/zendsvr/bin/php-cli /batchphp/args.php firstarg 
PHP Batch Jobs on IBM i  |    |  46
Alan Seiden, Strategic Business Systems
Pass parameters into CL, into PHP
PGM        PARM(&FIRST &SECOND)           
DCL        VAR(&FIRST) TYPE(*CHAR) LEN(25)             
/* Call PHP with command line arguments */             
CALL       PGM(QP2SHELL) +                             
'/BATCHPHP/ARGS.PHP' +                 
CALL PHPPARAMS PARM(‘param1’ ‘param2)
PHP Batch Jobs on IBM i  |    |  47
Alan Seiden, Strategic Business Systems
What else can you do?
Generate and email Excel spreadsheets or HTML-
formatted emails
Access web services (see my talk tomorrow!)
Create PDF files with dynamic text and graphics
Manipulate IFS stream files
PHP Batch Jobs on IBM i  |    |  48
Alan Seiden, Strategic Business Systems
Excel spreadsheets: simple or formatted
PHP Batch Jobs on IBM i  |    |  49
Alan Seiden, Strategic Business Systems
How to generate spreadsheets
Simple CSV spreadsheet: O
utput (echo) comma-delimited data
 Note: change curly quotes to straight quotes in your code
header(‘Expires: 0′);
header(‘Cache-control: private’);
header(‘Content-Description: File Transfer’);
header(‘Content-Type: application/’);
header(‘Content-disposition: attachment; filename=“file_name.csv”‘);
// commas to separate. \n for new line
echo “firstname,lastname\nMike,Pavlak\nAndi,Gutmans”;
True Excel file with formatting
 (for newer format, 2007+)
 These free packages allow complex
styling, nonscrolling headers, lots more
PHP Batch Jobs on IBM i  |    |  50
Alan Seiden, Strategic Business Systems
Generate and send HTML email
Documents you may be interested
Documents you may be interested