| Prev | Perl Notes |
Next |
Wether a file or directory can be accessed - by you, your script, or your visitors - depends on the files's permissions. You can change a files's permissions either from the prompt or from within your script, as described here.
To change a file or directory's permissions:
if (-e "../tmp/archives") {
chmod(0777, "../tmp/archives") || @ErrorMessage;
print "The permissions have been changed.";
}
|
Tips
| Prev | Home | Next |