0

lets take the word press example now when you want to add new plugin you have to upload the plugin file (php file) in that case, may some one evil know your admin password and go to and upload a plugin but not realy plugin its evil code to hack your site

may we use function like this to check the content , but i know know , may the other plugins contand the same code? or i can dsable some functions in it?

Mac Os
  • 97
  • 1
  • 7

1 Answers1

2

By allowing someone to run their code in your project, some level of trust must be given.

What you're asking is already answered here: PHP: How To Disable Dangerous Functions

Community
  • 1
  • 1
Tobiasberg
  • 36
  • 2