SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Apr 27, 2001, 19:27 #1
- Join Date
- Aug 1999
- Location
- Pittsburgh, PA, USA
- Posts
- 3,910
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Okay, how can I accomplish the above?
I'm trying to take data within a PHP script, and send it via POST to a Perl script. Any help is *very* much appreciated!
-
Apr 27, 2001, 20:17 #2
- Join Date
- Jul 1999
- Location
- Chicago
- Posts
- 2,629
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There are 3 ways:
1) Access a URL like http://host/path/script.pl?querystring and discard the contents. Of course, the querystring would be the info you were passing.
2) Open a socket to the HTTP server and write out the HTTP headers and POST info. You can read the HTTP RFCs to find out the protocol; just search Google. Or search google for a non-RFC page about the HTTP protocol.
3) Use Unix Inter-process communication (IPC). I'm not sure if this is available for PHP, which is why you probably won't use it. But if you need to pass a ton of info, then use this.
Bookmarks