Re: Sending a lot of data to remote site

From: Date: Fri, 12 May 2006 10:17:30 +0000
Subject: Re: Sending a lot of data to remote site
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-236055@lists.php.net to get a copy of this message
Ryan A wrote:
Hey, Thanks for replying. ...
('hugo_the_boss','james007bond','max_power','etc') in "peak season" I expect the array to go upto 5k entries but very unlikely as I will be transferring data every minute of only new entries.
ok so the data is pretty simple and predictable - I take it that the max length of the username is known, this way you can calculate pretty well how much data you could be send at a time. ...
Every 2 mins max, usually every min.
that is fairly often :-) I would not use a webserver based solution - go directly to CLI. setup a deamon script on your server that listens to a port for an incoming connection from the remote server -- use a SHA hash token known only to the client and server script for a means to to do a simple form of protection (so only the remote server you want can connect and download). ... and pump out binary packed data on request. (I have never used the pack()/unpack() commands but this seems like an opportunity for using them) again just an idea - maybe someone with more experience in this area can comment as to it's validity.

« previous php.general (#236055) next »