TheSupportForum
11-05-2012, 01:35 AM
Hi i need support with this scheduled task
rename("$logfile/$logname", "$logfile/backup/$logname" . date("d-M-Y", time()) . ".txt");;
the issue is as follows
1) original filename from $logname is log.txt
2) after rename it become tenhbyuu.txt04-Nov-2012.txt
so what im looking for is a solutions to do
2) renamed to tenhbyuu-04-Nov-2012.txt
the reason i am using a $logname is to allow users to choose log name, i am am still looking to keep
rename("$logfile/$logname", "$logfile/backup/$logname"
in place
rename("$logfile/$logname", "$logfile/backup/$logname" . date("d-M-Y", time()) . ".txt");;
the issue is as follows
1) original filename from $logname is log.txt
2) after rename it become tenhbyuu.txt04-Nov-2012.txt
so what im looking for is a solutions to do
2) renamed to tenhbyuu-04-Nov-2012.txt
the reason i am using a $logname is to allow users to choose log name, i am am still looking to keep
rename("$logfile/$logname", "$logfile/backup/$logname"
in place