Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   phphq.Net Forums (https://novahq.net/forum/forumdisplay.php?f=277)
-   -   puploader move and copy file (https://novahq.net/forum/showthread.php?t=43861)

drakus 08-20-2009 10:15 AM

puploader move and copy file
 
First of all great script.

Secondly, is there a way to have it not only move the file to a location, but also copy it to another location as well? I need to put the uploaded file in 2 locations on server.

Thanks

Drakus:sadroll:

Scott 08-20-2009 10:54 AM

After (Line 239)
PHP Code:

If(@move_uploaded_file($_FILES['file']['tmp_name'][$i],$folder.$file_name[$i])) {
    
$uploaded=true

Add this:
PHP Code:

copy($folder.$file_name[$i], "./uploads_copies/".$file_name[$i]); 

You'll have to edit the "./uploads_copies/" to your copy path.

hdn 09-18-2013 08:25 AM

hi,
exquzeme, how to i move file after upload tp another server via ftp account?
can i upload only file to another server with ftp ? and use phuploader?
tankx


All times are GMT -5. The time now is 06:28 PM.

Powered by vBulletin®