Re: [PHP] Managing upload files in multiple servers(pawns)

2006-01-01 Thread David Tulloh
Duncan Hill wrote: Use a shared file system such as NFS for upload storage. ... Shared storage is probably the better bet - perhaps with clever code that tries a local disk first, then the shared storage if not found on local. If found shared and not local, pull to local. I think a

Re: [PHP] Managing upload files in multiple servers(pawns)

2005-12-31 Thread Duncan Hill
On Saturday 31 December 2005 02:06, Srinadh Sannidhanam wrote: Hi All, We have a site in php and two web servers(pawns) to balance the load. There is a page in the site through which user can upload images. When a user uploads an image, the request goes to only one of the two servers. So

Re: [PHP] Managing upload files in multiple servers(pawns)

2005-12-31 Thread Srinadh Sannidhanam
Thanks Duncan, thanks for the suggestions, I will try them and come back.. Please suggest me if you know any file synchronization tools over different servers other than rsync. I like if syncronization triggers immediately after uploading the file automatically rather than using cron. Thanks,

Re: [PHP] Managing upload files in multiple servers(pawns)

2005-12-31 Thread Alex Turner
Why not use php to copy the file over to the other box? You could do this either by ftp, nfs etc, or by making a the php script communicate with the upload script on the other box as though it was a client. Cheers AJ Srinadh Sannidhanam wrote: Thanks Duncan, thanks for the suggestions, I

[PHP] Managing upload files in multiple servers(pawns)

2005-12-30 Thread Srinadh Sannidhanam
Hi All, We have a site in php and two web servers(pawns) to balance the load. There is a page in the site through which user can upload images. When a user uploads an image, the request goes to only one of the two servers. So the image will be uploaded to only one server. How can we copy that