tags:

views:

106

answers:

4

Hello,

I wanted to know the way to disable a function from usage in PHP.

Thanks

+15  A: 

In the php.ini configuration file, you can use the disable_functions parameter. For example, to disable the symlink() and system() functions, you would use:

disable_functions = "symlink,system"
Dumb Guy
Wow..thanks :) Your answer and name and not in sync :D
Lol...Uh oh, now I have 666 reputation.
Dumb Guy
I want to support but I cannot. it says i need 15 score :(
A: 

If you can give me more details, like what you are trying to do maybe we can provide a better solution. To answer your query if you want to disable a function this should do:

override_function('test', '', '');

this will override function test with a function that does nothing.

Luis
A: 

you may try to override that function to do nothing

http://php.net/manual/en/function.override-function.php

Gaurav Srivastava
A: 

adfasfsadasfafsaf

asdfsafsa