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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to