Reply
Move Files!
Old 07-07-2004, 07:07 AM Move Files!
Junior Talker

Posts: 2
Hello,

I need to copy the file img.jpg from c:\Test\img.jpg to /var/www/html/Test/img.jpg! I do that like this:

if(move_uploaded_file($_FILES['C:\Test\img.jpg'],'/var/www/html/Test/img.jpg'))
{
print "File is valid, and was successfully uploaded. ";
print "Here's some more debugging info:\n";
print_r($_FILES);
} else {
print "Possible file upload attack! Here's some debugging info:\n";
print_r($_FILES);
}

But do not work! What I'm doing wrong?
Vitor is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-07-2004, 08:02 AM
Republikin's Avatar
Super Moderator

Posts: 3,191
Is /var/www/html/Test on the same server as C:\Test? Where is the code for the move_uploaded_file() function?
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Move Files!
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11778 seconds with 12 queries