Disable Functions in PHP

Disable Functions in PHP

Some time we don’t want some of the process to do in our server.
PHP offers a way to restrict some of the function done in our server.
We can do it in php.ini

disable_functions funtion1,function2,…..

example if we don’t want scripts to write a file

we can specify

disable_functions fwrite

If the script uses fwrite then it will give the warning

Warning: fwrite() has been disabled for security reasons in /docroot/script.php on line 10

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.