Re: upload file then move between servers

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

 



On Fri, April 20, 2007 5:11 pm, blackwater dev wrote:
> I need to allow a user to upload a file.  Once the file is up, I need
> to
> then move it to another server and wsync it to our webclusters.
> What's the
> best way to do this with php?  I don't really want php issuing root
> commands.  I've considered storing the file in the db but really need
> it to
> be scanned (they should just be images) then pushed out to my servers.

Let PHP do all the checks you can think of, and then
http://php.net/move_uploaded_file to the directory that is getting
wrsync'ed or whatever.

Let root cron job handle the sync.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
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