Some time ago the PHP safe mode has been deprecated. That's why, I can't use it.
I'm planning to run a game server for a client who rents from me and I will give a directory-FTP
to him. However , it'll run PHP and some plugins may use functions like unlink()
outside of their allowed directory, being able to delete other dangerous server files... and functions such as exec()
or any malicious, dangerous function should be disabled.
For example, Hostinger's hosting has what I'm looking for. They limit actions you can do and don't let you go outside your allowed directory using PHP, and functions such as exec()
are disabled.
How can I do that?
Current Version : PHP7