_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
Meg
Question subject: Re: Long files name
Posted: Wed Feb 11, 2009 1:32 am
Joined: Mon Feb 09, 2009 1:52 pm Posts: 5 Has thanked: 0 time Have thanks: 0 time
I apply as your code example above I got a resulted for what I want it, but all files upload get the same name example.jpg, thanks
But it more nice if I can add a random string with numbers and letters at the end of each example files, eg: example_as12.jpg. Tried in many way but I got an error message, I think this is the last part of the code on applying to upload file with random string.
With your help on this random string all done for this code. thanks msi_333 for your great help.
msi_333
Question subject: Re: Long files name
Posted: Wed Feb 11, 2009 9:24 am
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
i don't think it is a good idea to use random function , because it can be repeated .
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
Meg
Question subject: Re: Long files name
Posted: Wed Feb 11, 2009 9:38 am
Joined: Mon Feb 09, 2009 1:52 pm Posts: 5 Has thanked: 0 time Have thanks: 0 time
With this code all files upload will override each others, that mean previous file with see with latest file upload.
Code:
$rndName = "example." . findExtension($n);
Anyhow thanks for your help.
msi_333
Question subject: Re: Long files name
Posted: Thu Feb 12, 2009 10:02 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
you are welcome .
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )