加密 PHP 源代码
如何加密我的 PHP 页面,以便没有人可以读取源代码的内容文件。它包含 mysql 用户和密码等详细信息。此外,人们也无法复制它并创建一个像我的网站一样的网站,而无需自己开发。
Possible Duplicate:
What is the best PHP code encryptor?
Encrypt php code
How do I encrypt my PHP pages so that no-one can read the contents of the source file. It has details like mysql user and passwords in it. Also it would be so that people can't copy it and start a website just like my one, with no development of their own.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您的服务器配置正确,那么其他人几乎不可能查看代码。一旦用户请求
php
文件,该文件就会在您的服务器上执行并发送响应文本。如果您能够使用网络浏览器查看源代码,则意味着您的服务器配置不正确。
If your server is configured properly, it is virtually impossible for someone to view code. Once a user requests the
php
file, it is executed on your server and the response text is sent.If you are able to see the source with a web browser, that means your server isn't configured correctly.
PHP 代码不需要对公众可见即可执行。配置网络服务器,使其不允许下载原始 PHP 代码。
The PHP code does not need to be visible to the public in order for it to execute. Configure the webserver so it does not allow downloading of the raw PHP code.
只要在服务器上配置了 PHP,那么您的代码就应该是相当安全的。
As long as PHP is configured on the server, then your code should be fairly safe from view.
PHP 由您的 Web 服务器解释。您的 php 创建您的查看者可见的 html 代码。仅当有人有权访问您的 Web 服务器时,您的 php 代码才可见。
PHP is interpreted by your web server. You're php creates your html code which is visible to your viewers. Your php code is only visible if someone has access to your web server.