Search found 56 matches

by rodflohr
Thu Apr 09, 2009 2:58 am
Forum: Zend Studio for IBM i
Topic: Data Source Explorer - Do you use it with your i5?
Replies: 4
Views: 5972

Re: Data Source Explorer - Do you use it with your i5?

Please try connecting using these steps: 1. Switch to the Database Development Perspective 2. In the data Source Explorer, right click 'SQL Databases' and select 'New...'. 3. Set the Connection Name to anything meaningful to you. 4. Under 'Select a driver from the drop-down:' select 'AS/400 Toolbox ...
by rodflohr
Mon Apr 06, 2009 6:31 pm
Forum: Zend Core for i5/OS
Topic: Upload .csv file to AS400 PF
Replies: 3
Views: 4134

Re: Upload .csv file to AS400 PF

You can add a record to your PF using i5_new_record(), which takes an array as input. To do this you need to parse out each line of your csv file to be an array of values to load the record. There are a couple of ways to do it. One way is to read the entire csv into a string using file_get_contents(...
by rodflohr
Sat Apr 04, 2009 1:24 am
Forum: Zend Core for i5/OS
Topic: Upload .csv file to AS400 PF
Replies: 3
Views: 4134

Re: Upload .csv file to AS400 PF

One way would be to use a POST method upload to upload the file. ( http://us.php.net/manual/en/features.file-upload.post-method.php ) Google turns up lots of examples. This one looks pretty easy to follow: http://www.htmlgoodies.com/beyond/php/article.php/3472551 Once you have the file uploaded, you...
by rodflohr
Tue Mar 31, 2009 7:51 pm
Forum: Zend Core for i5/OS
Topic: READE using i5 PHP Toolkit
Replies: 2
Views: 2719

Re: READE using i5 PHP Toolkit

Instead of i5_seek(), please try using i5_range_from() and i5_range_to() with both ends of the range having the same key. Please see page 81 of the Zend Core for i5/OS User Guide for information on how to use these functions: http://static.zend.com/topics/Zend-Core ... S-V261.pdf
by rodflohr
Thu Mar 26, 2009 1:19 am
Forum: Zend Core for i5/OS
Topic: using i5_program_call, returned values inside a function
Replies: 3
Views: 3909

Re: using i5_program_call, returned values inside a function

You do not show the code used to run these functions. Something like this should work:

$pgm = pgm_prep_rtvpartinfo();
$part_price = pgm_call_rtvpartinfo($pgm, $addnum, $partnum, $vendor);

echo $part_price;
by rodflohr
Thu Mar 26, 2009 12:21 am
Forum: Zend Core for i5/OS
Topic: Wants to work with PEAR
Replies: 1
Views: 2735

Re: Wants to work with PEAR

PEAR is installed with Zend Core for i5/OS. The pear command is at /usr/local/zend/core/bin/pear . There is not a User Guide for i5/OS specifically, but you can find instructions for how to use PEAR to install packages at: http://pear.php.net/manual/en/guide.users.commandline.installing.php . Please...