Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Hello I've used a script that creates a foldersctructure and creates a html-file within the last folder of the path. This works well. But I cant delete any folder or the file itself within this path. I also can't chanche the folder permissions of any folder or file. It looks like I dont have any rights to change the atributes.
Is it the script that has changed the permissions? Does anyone have a solution?
I work with FTP-PRO 2006.
The scriping part of a phpt:Code: Select all
//creating the path to the file (as it probably wasn't there already)
$current_folder = "sended_forms_in_html";
mkdir($current_folder);
$current_folder = $current_folder."/"."formname";
mkdir($current_folder);
$current_folder = $current_folder."/"."nl";
mkdir($current_folder);
//saving the file
$fp = fopen($current_folder."/".$current_answerfile.".html","w+");
fwrite($fp, $html_message, 100000);
fclose( $fp );Cheers.
Ralph
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]