How to enable some PHP functions?

For security purposes, we have disabled several PHP functions that are deemed dangerous. We do not recommend any customers to use them, unless you really need them. The steps to enable them are:

1) Create an empty php.ini file in your computer
2) Copy and paste the following line in the file

disable_functions = system,exec,passthru,shell_exec,proc_open,proc_get_status,proc_terminate,proc_close,virtual,popen,show_source,curl_multi_exec

3) Remove the function you want to enable from the line
4) Upload it to the directory your script is installed

 

NOTE:
Enabling any of these functions are extremely dangerous and open up your account to hackers. Do it at your own risk.
Several copies of the php.ini is needed if you need the function to work in multiple directories.

  • 10 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

How to enable PHP 5.3?

It is easy to enable PHP 5.3 in your web site:   Create a file .htaccess in the web folder...

How do I enable/disable PHP register_globals and safe_mode?

To enable/disable register_globals and safe_mode in your account, please Create a php.ini file...

Do you support ASP, .NET, MSSQL and ColdFusion?

I'm sorry but currently our hosting servers are all Linux based and we do not support them.

How to activate PHP 4?

To execute your PHP scripts with PHP 4: 1) Login to cPanel2) Under Software/Services section,...

Where should I install CGI scripts in my account?

All CGI scripts (.cgi, .pl files) should be uploaded to the cgi-bin folder, in your account.Be...