Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8599

Re: Does PHP have a way to pass form data to a remote script?

From "M. Strobel" <sorry_no_mail_here@nowhere.dee>
Newsgroups comp.lang.php
Subject Re: Does PHP have a way to pass form data to a remote script?
Date 2013-03-08 10:12 +0100
Message-ID <aptobpFdg7sU1@mid.uni-berlin.de> (permalink)
References <4f1f5373-cbb1-4606-9355-7ed5adc1bf95@googlegroups.com> <slrnkjii4f.m9f.hellsop@nibelheim.ninehells.com> <e5a79d8a-f4aa-4018-aed4-77713f734b9c@googlegroups.com>

Show all headers | View raw


Am 08.03.2013 03:39, schrieb lichunshen84@gmail.com:
> On Thursday, March 7, 2013 9:10:23 PM UTC-5, Peter H. Coffin wrote:
>> On Thu, 7 Mar 2013 17:29:34 -0800 (PST), lichunshen84@gmail.com wrote:
>>
>>
>>
>>> Hi,
>>
>>>
>>
>>> I'm not a php programmer but my customer is using Word Press and
>>
>>> WooCommerce (I assume php is used to do the process etc.) for their
>>
>>> order processing). What we would like to do is to add a function to
>>
>>> pass the order data / form data to a remote script so that the remote
>>
>>> script can capture the form data as well, no need to get anything back
>>
>>> to the caller (the current form processor).
>>
>>>
>>
>>> Is it doable with php?
>>
>>
>>
>> Almost certainly yes. PHP support establishing network connections by
>>
>> many means.
>>
> 
> Could you elaborate a bit?  Even better, some sample code.  Thanks.
> 
Introduction

PHP supports libcurl, a library created by Daniel Stenberg, that allows you to
connect and communicate to many different types of servers with many different types
of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict,
file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP
PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based
upload, proxies, cookies, and user+password authentication.

These functions have been added in PHP 4.0.2.

/Str.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Does PHP have a way to pass form data to a remote script? lichunshen84@gmail.com - 2013-03-07 17:29 -0800
  Re: Does PHP have a way to pass form data to a remote script? "Peter H. Coffin" <hellsop@ninehells.com> - 2013-03-07 20:10 -0600
    Re: Does PHP have a way to pass form data to a remote script? lichunshen84@gmail.com - 2013-03-07 18:39 -0800
      Re: Does PHP have a way to pass form data to a remote script? Scott Johnson <noonehome@chalupasworld.com> - 2013-03-07 18:54 -0800
        Re: Does PHP have a way to pass form data to a remote script? lichunshen84@gmail.com - 2013-03-07 19:00 -0800
          Re: Does PHP have a way to pass form data to a remote script? Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-07 22:59 -0500
      Re: Does PHP have a way to pass form data to a remote script? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-03-08 10:12 +0100
        Re: Does PHP have a way to pass form data to a remote script? padam <iarethebest@gmail.com> - 2013-03-09 08:29 -0800
          Re: Does PHP have a way to pass form data to a remote script? Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-09 15:28 -0500
            Re: Does PHP have a way to pass form data to a remote script? padam <iarethebest@gmail.com> - 2013-03-09 21:07 -0800
              Re: Does PHP have a way to pass form data to a remote script? Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-10 09:23 -0400

csiph-web