Hi I when a user upload a file to my website i can't rename it, but when i upload a file directly using ftp i can rename it using rename(). What is wrong?
move_uploaded_file() after i upload the file i chmod() it to 0777 but itstill isn't working. it is working perfectly on my local computer.
You shouldn't need to chmod it to be able to rename it. Just insure that httpd process has file edit privileges to such folder you are storing the files in. What system/control panel are you using? Peace,
ok it turns out that nothng is wrong just the browser settings. someone ought to make a better browser. anyway try out my new website and see if there is any security hole in my sig.
Browser settings makes absolutely no sense in terms of why you wouldn't be able to rename an uploaded file.
yes when i switch a picture's name a browser remembers the old address and tends to display the old file. i thought ther's something wrong with my code. i manage to get around it though.
Yes, i also gone through this type of problem.. you ca do one thing when you are uploading file to your server or database store file name in string. php script This Script will work fine. if you want to rename file while uploading let me know. Visit Here http://forums.digitalpoint.com/showthread.php?t=791354