|
On 2011-05-04 20:30, Jim Franz wrote:
> Need to receive orders produced from a shopping cart on another server.Here's a php script that I use to submit a request to a copy of the w3c
> 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
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 mailing list archive is Copyright 1997-2025 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.