Dangerous PHP Functions Must be Disabled?

Joined
Mar 11, 2014
Messages
35
Best answers
0
Ratings
3
Points
8
#1
I have read a reply on this forum and was recommended to disabled dangerous PHP Functions on my hosting control panel?

I searched and got a list of dangerous php functions:
apache_child_terminate
apache_setenv
define_syslog_variables
escapeshellarg
escapeshellcmd
eval
exec
fp
fput
ftp_connect
ftp_exec
ftp_get
ftp_login
ftp_nb_fput
ftp_put
ftp_raw
ftp_rawlist
highlight_file
ini_alter
ini_get_all
ini_restore
inject_code
mysql_pconnect
openlog
passthru
php_uname
phpAds_remoteInfo
phpAds_XmlRpc
phpAds_xmlrpcDecode
phpAds_xmlrpcEncode
popen
posix_getpwuid
posix_kill
posix_mkfifo
posix_setpgid
posix_setsid
posix_setuid
posix_setuid
posix_uname
proc_close
proc_get_status
proc_nice
proc_open
proc_terminate
shell_exec
syslog
system
xmlrpc_entity_decode
Should I disable all of them? How to do?


Thanks!
 

hostens

Well-known member
Joined
Jan 18, 2017
Messages
192
Best answers
2
Ratings
73 9
Points
28
#2
If you are not using them it should be better to disable them. Just make sure any of your hosted project do not use them.
 
Joined
Mar 11, 2014
Messages
35
Best answers
0
Ratings
3
Points
8
#4
If you are not using them it should be better to disable them. Just make sure any of your hosted project do not use them.
I am afraid my scripts can have small errors that I can not know when disabling these functions. So I will go your second suggestion.
although they are dangerous functions , some of them will need enabled in order to work the app or the website work. so enable them as per the needs
I got your points hence I still am using them :)
 

WPCycle

Well-known member
Joined
Dec 31, 2016
Messages
117
Best answers
0
Ratings
20 3
Points
18
#5
Sorry I don't know how to quote with the new forum, but if you have logs running (access and errors) you should be able to track even small errors. Either way, that is a good list to start out with.
 
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top