Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Generate Image Names

Status
Not open for further replies.

zyman10

Technical User
Dec 7, 2008
41
US
Hi All,

This is my first post, so I'm sorry if I mess up. I am working on a website, and I have a question that may be stupid, so maybe you can point me in the right direction so I don't waste anyone's time.

I have a image that I want to copy, rename, and place in the same directory as the original. So if I have a folder with an image called '1.gif'... at the end of each day I would want to create '2.gif' in that directory, and then '3.gif' etc etc. I would want the directory to contain all of the images even if it several days in the future.

I am using PHP and MySQL for my site, neither of which I am expert at, but I feel confident that I can code something that does this after a reasonable amount of effort. However, this seems like quite a normal task for websites, so I am sure there is an more effective way than what would probably end up being a hack on my end.

Thanks,

z
 
Hi and welcome to Tek-Tips.

You will get a better response if read faq222-2244 for posting guidelines first. This is probably more of a PHP question, so you should repost it in forum434, showing what code you presently have and where you are having problems.

Then come back here and RedFlag your question in this thread and ask for it to be removed.


If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top