Re: post an array into another site

From: Date: Tue, 09 Dec 2003 01:06:23 +0000
Subject: Re: post an array into another site
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-172198@lists.php.net to get a copy of this message
Manuel Lemos wrote:
Hello, On 12/08/2003 10:39 PM, Justin Patrin wrote:
$arr[0][0] = "Something"; $arr[0][1] = "Hello"; $arr[0][2] = "Hi"; It is possible to post this array to another site in a form? Or how can i do this?
You may want to try this class that lets you make HTTP requests like a normal browser: http://www.phpclasses.org/httpclient
Or even better, use PEAR's HTTP_Client. http://pear.php.net/package/
HTTP_Client Why better? Have you tried both packages?
No, however, the httpclient system is a lot of code that is part of one class. HTTP_Client is based on lots of sub-systems, each of which can be used seperately and for other purposes (and each of which is maintained by seperate, multiple people). For instance, there is the Socket API, URL parsing, the HTTP Request, etc. All of which HTTP_Client is built upon instead of re-inventing. Also, and just as important, using PEAR packages gives you a centralized way of dealing with errors. -- paperCrane <Justin Patrin>

« previous php.general (#172198) next »