Skip to content

Instantly share code, notes, and snippets.

@RyujiAMANO
Created November 4, 2013 02:41
Show Gist options
  • Save RyujiAMANO/7297361 to your computer and use it in GitHub Desktop.
Save RyujiAMANO/7297361 to your computer and use it in GitHub Desktop.
WindowsAzureWebサイトでNetCommons2のinstall.inc.phpをリードオンリーにしたり書き込み権限つけるスクリプト ref: http://qiita.com/RyujiAMANO/items/b1a1e4cd8f1af607a851
<?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