to create this file it's not a problem but depended from the OS, but this is not secure for your site...Peuplarchie wrote:Good day,
I was wondering how can I had a link to a page each first or the month ?
Can I also automaticly create that page in a folder that I would create a the same time.
Here's what it would do by step :
- check date, if 1st of month, create new folder named the name of the month in this year folder if it not already done.
- create a html file named the name of the month, if it's not already done.
- Add a link to the newly create page on the menu page in another folder, if it's not already done.
- redirect to page in another folder
Thanks for your help !
I reccomed read about apache module mod_rewrite I think what this bettere solution in your situation
about mod_rewrite you can find in Google
or use this (selective taked from the google) links:
http://www.ilovejackdaniels.com/mod_rew ... _sheet.pdf
http://www.workingwith.me.uk/articles/s ... od_rewrite
but If you want really create folder and files you can use
system() or shell_exec() php function