In a shared hosting I use (where I don't have access to httpd.conf files) I want PHP files in "MyTargetFolder" to not have ability to access anything in upper directories.
It needs some configuration like OPEN_BASEDIR, SAFE_MODE, passthru,readfile,exec,system,shell_exec,escapeshellarg,escapeshellcmd,proc_close...
But here I have found OPEN_BASEDIR is said to be not a good solution. Also, SAFE_MODE is deprecated. What can be a solution?
Note: question was for "shared" hosting, not VPS or above.