|
I am new to using PHP and i am trying to create a script that will create a folder and place a html document in the folder. So far i have done this with the following code
mkdir ("{$rootpath}/{$username}", 0755);
$filename="{$rootpath}/{$username}/index.html";
$file=fopen($filename,"w", 0777);
fwrite($file, "Hello\n");
fclose($file);
But the problem i am having is that once the file index.html is created i am unable to delete it from the sever. I have tried deleting it using WS FTP but it just wont delete. Can anyone tell me how to fix this?
|