Jump to content

need some help creating text files..


CSmith1128

Recommended Posts

Hello. I need some help creating text files.

I want to set my access rules to 0777 so that I can delete the text file via script if I need to.

I already set the folder to 0777 when I created it.. now I just need the text files.

 

How would I set the access to 0777 when I create the file?

 

This is what I have right now...

 

$text= "this is text.";

$fileName = "examplefolder1/example.txt;

$handle = fopen($fileName, 'w');

fwrite($handle, $text);

fclose($handle);

 

Is there some way to do it in that statement?

 

Thanks

Chris

Link to comment
https://forums.phpfreaks.com/topic/51149-need-some-help-creating-text-files/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.