Re: Can't copy file to another server

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

 



do you just need a /
$AcceptedFolder= 'F:/';





                                                                                                                                        
                      Karen Resplendo                                                                                                   
                      <karenresplendo@y        To:       php-db@lists.php.net                                                           
                      ahoo.com>                cc:                                                                                      
                                               Subject:   Can't copy file to another server                                     
                      10/23/2003 02:22                                                                                                  
                      PM                                                                                                                
                                                                                                                                        
                                                                                                                                        




Apache on Windows web server.
After file upload and validation I would like to copy it to a folder on a
Win 2K Server machine.
We have created the folder and shared it and mapped a drive(F:) on the
Webserver to it:

$AcceptedFolder= 'F:';
$AcceptedFileAndPath=$AcceptedFolder.$HTTP_POST_FILES['userfile']['name'];
copy($uploadfileandpath,$AcceptedFileAndPath);

We get this error:
Warning:  Unable to create 'F:Apr05-08-2002.txt':  Permission denied in
C:/Program Files/Apache13 14/Apache/htdocs/file_upload.php3 on line 165

Sure could use some help.




---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux