[PHP-DB] move_uploaded_file
I have a file uploading function that works well on my local server. It finds a picture and uploads it into a defined directory. Unfortunately this function does not work when I try to upload to my web host. It says I do not have the proper permissions. I believe this has to do with the fact that my web host requires a user name and password for all file transfers for security reasons. I still want my users to be able to upload files or pictures to my web host (if I have granted them proper access through my log in). How do I indicate the correct login sequence for my web host with a function like move_uploaded_file? - Matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] move_uploaded_file
--- matthew perry [EMAIL PROTECTED] wrote: I have a file uploading function that works well on my local server. It finds a picture and uploads it into a defined directory. Matthew, if you are the confident that your function works correctly, your next check should be on what permissions you have to the defined directory on your web host's server. If you are on a UNIX/Linux based box, you probably only have write permissions to your /home/logon_name directory. So if you are trying to write to some directory outside of that, you are probably restricted, which explains the error message from you web server. I'm not familiar enough with directory structures on Windows-based web servers, but I imagine it is similar to UNIX/Linux in restricting you to your user path. ~Rachel __ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25ยข http://photos.yahoo.com/ph/print_splash -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] move_uploaded_file
Windows works a bit different. You have to define which folders and files get access to the internet. After that you can specify the web permissions using the iis snap in. This is of course if you're using iis. I'm not sure for apache or other servers handle it. -- Marcjon -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php