× 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.



Additionally you might contact Mike Pavlak. He has a presentation with examples about how to use PHP to attach to the web service created on the IBM i box in RPG.

Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects


On 5/4/2011 9:14 PM, Pete Hall wrote:
On 2011-05-04 20:30, Jim Franz wrote:
> Need to receive orders produced from a shopping cart on another server.
> Each will have name/address order& shipto info, plus 1 to many detail records.
> No CC stuff. No $$ for edi software.
> I'd like to sound halfway intelligent talking to a php developer on the other end as
> to how we could handle this (web service pgm?) or simple ftp...
> Many orders a day but we a not talking huge volumes. Currently getting it via email.
> This then will feed into an inhouse entry system, v6r1& strictly a RPG shop.
> Jim Franz
Here's a php script that I use to submit a request to a copy of the w3c
html validator that I host on a local server. I use it for validating
all of the html pages in a local directory.

#!/usr/bin/php
<?php
$page ="http://validator.invalid/check?uri=$argv[1]";;
if ($fp = fopen($page, 'r')) {
$contents = fread($fp, 100000);
// Find 'Passed validation' or 'Failed validation'
if (preg_match("/\bPassed validation/",$contents)) {
echo(1);
} else {
if (preg_match("/\bFailed validation/",$contents)) {
echo(0);
} else {
echo(-1);
}
}
fclose($fp);
} else {
echo(-1);
}
?>

You could also check out the examples at paypal.com. They have an html
interface, and examples of how to use it from php.

hth

- -- Pete Hall
pete@xxxxxxxxxxxxxx

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.