faqts : Computers : Programming : Languages : PHP : Installation and Setup : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 13 people (31%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

Can I disable an internal PHP function?

May 5th, 2005 00:18
Hossam Hossny, Nathan Wallace, Stanislav Malyshev


You can try to go to the C code that implements the function and just
remove the part of the function that does the actual work.
For example, to stop users using the link function just remove the part
that does the actual filesystem link.
After making the changes, recompile.
----------------------------------
Added by: Hossam Hossny
a simple way to do this is to use the disable_functions directive in 
your /etc/php.ini configuration file.
Cheers,
Hossam