| Walter,
<?php
// Read and write for owner, nothing for everybody else
chmod("test.txt",0600);// Read and write for owner, read for everybody else
chmod("test.txt",0644);// Everything for owner, read and execute for everybody else
chmod("test.txt",0755);// Everything for owner, read for owner's group
chmod("test.txt",0740);
?>
|
On Apr 19, 2008, at 4:28 PM, Walter Lee Davis wrote: On Apr 19, 2008, at 5:04 PM, Robert Poland wrote: Walter,
Your idea looks interesting but I can't seem to figure out how to apply it.
Could you give me an example?
On Apr 19, 2008, at 9:43 AM, Walter Lee Davis wrote:
If you can see it in the browser, you can keep it. If you want to keep people from stealing your images, you could do
chmod 600 *.jpg
That was actually a joke! If you do this, all the jpeg images in the current folder will simply disappear from the browser. By setting the "world" permissions to none (what the third 0 means), you effectively remove permission for anyone to see them. 644 is normal for images on a Web page, it means the file owner can read and write, group and everyone else can read only. Walter
Bob Poland - Fort Collins, CO
|