I guess your problem is that the comparision does not work for you in the following line:
Your dates (e.g. $exp_dir_date or the filenames) are strings, therefore you should use the string compare operators instead of <=, = ... . In your case le would be the correct one. HTH, Rataif($file <= $exp_dir_date){...
In reply to Re: Compare dates help!
by Ratazong
in thread Compare dates help!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |