If you don't have CURL installed on your server, you can make a socket
call with the POST method:
http://www.php-faq.com/postToHost.html
// postToHost.php
// Sample of posting to a local or remote server
// Written by Rasmus Lerdorf
// buy his book published Mar 2002
// ---------------------------------------------
//Use fsockopen to send the data:
$host = "your.host";
$port = 80;
$postdata = "field1=value1&field2=value2&field3=value3";
if ($sp = fsockopen($host, $port)) {
fputs($sp,"POST /path/to/script.php HTTP/1.0\n");
fputs($sp,"Host: $host\n");
fputs($sp,"Content-type: application/x-www-form-urlencoded\n");
fputs($sp,"Content-length: ".strlen($postdata)."\n");
fputs($sp,"Connection: close\n\n");
fputs($sp,$postdata);
fclose($sp);
}
In article <11**********************@f14g2000cwb.googlegroups .com>,
dj*****@citgo.com says...
Any help from the gods is appreciated.
I can cut and paste the following into my browser URL address and have
the script execute no problem:
http://subdomain.domain.com/log?amou...orderid=123456
the domain is another site. How can I run a php script on my server
that will essentially post the above, but within my php script?
As always, help from the gods is appreciated.
DJ