Is there a way to include_once ("somefiles.php") in PhP that only that code can read.
Other people cannot read that, at least not in human readable format.
somefiles.php can be put on other server but must be cached. Perhaps there is some encoding?
Is there a way to include_once ("somefiles.php") in PhP that only that code can read.
Other people cannot read that, at least not in human readable format.
somefiles.php can be put on other server but must be cached. Perhaps there is some encoding?
There's a lot of tools to obfuscate php code around the web, some are free and others paid. Here's some links to start:
http://www.pipsomania.com/best_php_obfuscator.do
Be aware that are, also, a lot of tools that do the opposite, "unobfuscating" your code, its a good practice to try your code on some of these:
Don't give other people root access, then run this for all your code:
chmod -R ug+r path/to/your/code
chmod -R o-r path/to/your/code
chown -R your-name path/to/your/code
chgrp -R www-data path/to/your/code