Hy phphelp.com
I have a question ,i have an site of upload files/images ,and i need script php ,or a script ,to rename files wich are upload on my ftp .
Exemple :
When i upload an files on my site of upload ,his is rename automatical on a number (13000) .
I need ,when i upload my files to rename to [PhpNet]MyFiles .
Because ,when users download files ,files to be [Name-SiteUpload]Name of Files .
Well, first, please use a subject line that is about your problem so that a programmer with that experience will read it. Using just “help me” does not tell the thousands of people on the site what your problem is. Something
like “How to rename files on upload” would have more responses…
Next, you did not show us any of your code. So, I am only guessing. But, when you upload a file using PHP code on a website, you normally post the filename to an uploading script. In that program, you use a function to move the temporary file to the live folder for holding the file. Most use “move_uploaded_file” function for this.
This is a small line that takes the temporary name of the uploaded file and moves it to where it belongs. In this
function line, you would save the file as a new name.
Did that make sense? So, if you do not understand this, show us your uploading program areas. Please post it to us inside of the PHP tags above so we can copy it easier.
Hope that helps… Let us know if you solve it or need more info…