<?php/*-------120_Chmod_&_Fileperms ------- */echo"</br><h7 class='myheading'>120_Chmod_&_Fileperms</h7></br>";echofileperms("readme.txt")."<br><br>";/* -------Fileperms- display the permisson of the file -------*/echodecoct(fileperms("readme.txt"))."<br><br>";// return the permission in octail format echosubstr(decoct(fileperms("readme.txt")),2)."<br><br>";// delete first 2 digit/* -------On SERVER-------*/if(is_readable("readme.txt")){echo"Yes it is Readable.";}else{echo"No it is not Readable.";}/* can be done by right click on the file and change the permission on server */chmod("readme.txt",0600);/* -------Read and write for owner, nothing for everybody else-------*/chmod("readme.txt",0644);/* -------Read and write for owner, read for everybody else-------*/chmod("readme.txt",0755);/* -------Everything for owner, read and execute for everybody else-------*/chmod("readme.txt",0740);/* -------Everything for owner, read for owner's group-------*/?>