Possible to view PHP code of a website?
问题 Is it possible to somehow view another websites php files/codes? Or to rephrase the question, Can my php codes be viewed by anybody except for those who have access to the file? If so, how can I best prevent this? Ps: Server OS is Ubuntu 9.10 and PHP version is 5+ (Apache2) 回答1: A bug or security vulnerability in the server (either Apache or the PHP engine), or your own PHP code, might allow an attacker to obtain access to your code. For instance if you have a PHP script to allow people to