Re: [PHP] upload file then move between servers

2007-04-21 Thread Tijnema !

On 4/21/07, blackwater dev [EMAIL PROTECTED] 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.

Thanks!


You could transfer files between servers using FTP.Or using internal
network connections. like if you have mounted the second server at
/mnt/server2, you could simply move the file with the built in PHP
command.
http://www.php.net/move_uploaded_file

Tijnema




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



Re: [PHP] upload file then move between servers

2007-04-21 Thread Richard Lynch
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



[PHP] upload file then move between servers

2007-04-20 Thread blackwater dev

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.

Thanks!