Hey, Does anybody know how to encrypt the PHP source code on a site? I have many passwords and files and things like that I don't want people to just be able to download. I'm not sure that a .htaccess file will do the job as that only stops people from visiting the directory... hmmm Any ideas?
Your source code isn't visible by the user. Only the data that is printed to the user. Unless you have some weird set of perms, etc.
I'm not putting passwords and files in PHP source code, however if people had access to the source code they could get into my mySQL databases (passwords), and find that passwords and URL's to some record files for my website.
ok, as far as the record files go... set permissions so that some random person cannot read the file. Unless your script has severe errors, no one will ever be able to see the source code. PHP is executed server side and the result is sent to the user, not the source code.
Hi, Go to this web site http://www.ioncube.com/. This company have PHP code encoder. But my opinion is like Zizzi. If you setup normally permissions and write good PHP script then you can access to user name and password. Big company's website's storing user name and password in plain php file. I'm not worry that much for security my site. You not running NASA mission web site. If you have good backup then any time you can restore your web site. And try to found out what is a problem. In real life doesn't exists hacker proof web site. Lot of people spending millions of dollars to improve they security system and after they hacked after half or one year period. Rudolf
as far as the outside user goes, they wont have access to your php code if you wanna distrubute php code, use zend