I’m working locally on a mac and trying to set the permissions for myself. I found a tutorial for right-click on the folder and choose “Properties” BUT this is for PC including a tutorial. Its very easy and you can see from this link (It if for PC)
http://www.html.net/tutorials/php/lesson16.php
BUT what about mac? I’ve searched but what I’ve found is complicated permission. Why can’t it simple as right click for PC but not for mac. I’d appreciate an easier way.
I’ve one folder called TEXT and I only want to allow READ only permission.
I’ve a php is already written but I can’t see anything on MAMP as local host? I’m using mac.
<html>
<head>
</head>
<body>
<?php
$file=fopen("text/readonly.txt","r"); or exit("Unable to open file!");
//Output a line of the file until the end is reached
while(!feof($file)) // end of file
{
echo fgets($file). "<br />";
}
fclose($file);
?>
</body>
</html>
You’re looking for
chmod.