Hi,
I am working on a magazine website. everything goes well.
There is one problem…
I want to creating a image upload facility that needs certain string as below…
my path to images as “/images/news/currentyear/currentmonth/”
- Its check that folder “/currentyear/currentmonth/” exits or not.
- If not exits then it create folder for “/currentyear/currentmonth/” else upload image in “/currentyear/currentmonth/” folder.
- It also create thumbnail of width=100 height=auto in “/currentyear/currentmonth/thumb/” folder.
- It send “$url(/currentyear/currentmonth/)$imagename” and “$url(/currentyear/currentmonth/thumb/)$imagename” to sql table witch have fields picid, thumb, picture, newsid.
Okay… Only these are the requirements.
any help is appreciated.
Thanks…