Re: Submit code
| From: | Lee Doolan | Date: | Tue, 16 Jul 2002 16:56:39 +0000 |
| Subject: | Re: Submit code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107925@lists.php.net to get a copy of this message | ||
here's an excerpt from a script in which I do something like that:
$pdArgs=
"demo=" . urlencode($argAry['demo']) . "&" .
"first_name=" . urlencode($argAry['first_name']) . "&" .
"last_name=" . urlencode($argAry['last_name']) . "&" .
[. . .]
$URL= "https://HOST.DOMAIN/SCRIPT.php";
exec("/usr/bin/curl -m 120 -d \"$pdArgs\" $URL -L", $httpResponse,
$exitCode);
if ($exitCode != 0) {
header ("Location: error.php?code=" . urlencode("https: failure. Exit code is $exitCode"));
exit;
}
--
When the birdcage is open, | donate to causes I care about:
the selfish bird flies away, | http://svcs.affero.net/rm.php?r=leed_25
but the virtuous one stays. |