Re: upload file then move between servers
| From: | Richard Lynch | Date: | Sun, 22 Apr 2007 05:18:16 +0000 |
| Subject: | Re: upload file then move between servers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253471@lists.php.net to get a copy of this message | ||
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?