tibberous Posted December 31, 2007 Share Posted December 31, 2007 I have a script that makes files and folders. The problem is that it makes them with permissions that don't all my ftp access - meaning I have to write a script to chmod everything, then run it. I am going to change the script to chmod everything, but is there some way I can set my script to either make files as 777 by default? Or have the script run as me somehow? Quote Link to comment https://forums.phpfreaks.com/topic/83842-file-permission-trouble/ Share on other sites More sharing options...
MadTechie Posted December 31, 2007 Share Posted December 31, 2007 if you have written a script to create the folders why do you need another script to update the permissions ? <?php $folder = "somedir"; mkdir($folder,0777);//0777 should be default! chmod($folder, 0777); //Just to double check ?> Quote Link to comment https://forums.phpfreaks.com/topic/83842-file-permission-trouble/#findComment-426766 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.