Created
November 4, 2013 02:41
-
-
Save RyujiAMANO/7297361 to your computer and use it in GitHub Desktop.
WindowsAzureWebサイトでNetCommons2のinstall.inc.phpをリードオンリーにしたり書き込み権限つけるスクリプト ref: http://qiita.com/RyujiAMANO/items/b1a1e4cd8f1af607a851
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST['Writeable'])){ | |
chmod( "install.inc.php", 0644); | |
} | |
if(isset($_POST['ReadOnly'])){ | |
chmod( "install.inc.php", 0444); | |
} | |
?> | |
<html> | |
<body> | |
<form method="POST"> | |
<input type="submit" name="Writeable" value="Writeable" /> | |
<input type="submit" name="ReadOnly" value="ReadOnly" /> | |
</fom> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment