Re: Sending a lot of data to remote site

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux