I am trying from several hours to sort and issue but i donno what the problem..
this is the following code i am using
mkdir("news_upload/$year/$month/$day",0777);
touch("news_upload/$year/$month/$day/$title.php");
chmod("news_upload/$year/$month/$day/$title.php",0777);
$template = "news_template.php";
$new = "news_upload/$year/$month/$day/$title.php";
copy($template,$new);
I have created the directories and given the permission the made a new empty file..
i added permissions to the new made file.. but it didnt apply as i check it.. (PROBLEM)
then i have a template designed with the name news_template.php
wanted to copy this template to the new created file..
the file gets created.. but the new file is not copying the template file on itself..
have i done anything rong??? help please?