Re: critical case, please read and comment !!

From: Date: Fri, 09 Jan 2004 14:10:44 +0000
Subject: Re: critical case, please read and comment !!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174114@lists.php.net to get a copy of this message
Nabil wrote:
for ($i=0 ; $i<NUM OF RECORDS ; $i++) { send_rec( $var1 , $var2 , $var3 ); }
with n records you send n http GET requets, which take a long time, using bandwith, and needs n executions of php script on webserver2. Why not simply creating a csv file on the fly, with all your 3fields data, and send it to the php script on the other webserver? You can do it via the POST method of HTTP, like the way it's done with an HTML form containing a type=file input tag. You just need a web client written in PHP (equivalent of Perl's LWP, libwww-perl). I think curl can do it. Just my 2 eurocents ;-) Christophe

« previous php.general (#174114) next »