Home >Backend Development >PHP Tutorial >How to set index.php file as read-only in php
Save the above content as setread.php, then upload it to the space, and browse the address directly with the browser to set read-only. However, after setting this read-only attribute, you will not have permission to delete index.php through ftp. If you need to delete or overwrite index.php, please use the following code to set the read and write permissions of index.php. The following is the code to set up index.php to read and write:
Save the above content as: setwrite.php, and access it through the browser to set the read and write permissions. |