如何在服务器中使PHP代码不可见 [英] How can I make PHP code invisible in server

查看:69
本文介绍了如何在服务器中使PHP代码不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在网络服务器上传我的php应用程序,但我不希望任何身体可以访问我的代码,如asp中的dll文件,每个身体编码都看不到代码我可以点这个php?



我尝试过:



我要上传我在网络服务器上的PHP应用程序,但我不希望任何身体可以访问我的代码,如在asp的dll文件,每个身体codde看不到代码我可以点到这个与PHP?

Hi
I want to upload my php application in web server but I dont want any body can access my code like dll file in asp that every body codde not see the code can i dot this with php?

What I have tried:

I want to upload my php application in web server but I dont want any body can access my code like dll file in asp that every body codde not see the code can i dot this with php?

推荐答案

没有人会访问您服务器上的代码,只是实际流式传输到客户端的HTML,CSS和JavaScript代码。 PHP代码在您的服务器上,您的服务器执行它以获得动态网页。



另请注意,ASP.NET中的dll文件也只能由开发团队访问。客户端和用户无法访问它们。如果他们这样做,应用程序的架构和设计很差。客户实际呈现您的网站时,HTML内容无论如何需要。但是,HTML内容可以使用库进行压缩和缩小,这使得任何人都很难阅读内容并了解其工作原理。您可以查看许多算法或服务,例如GZIP来压缩内容。您还可以尝试缩小JavaScript或CSS样式表。



PHP混淆器之一,是 PHP保护 - 免费PHP混淆器 [ ^ ]。您可以使用它来保护您的网站,只需来自潜在的读者或任何其他开发人员。 HTML代码仍然会被发送到客户端; PHP代码只会对逆向工程更难。
No one will access the code on your server, it is just the HTML, CSS and JavaScript code that you actually stream down to the client. PHP code, is on your server and your server executes it to get a dynamic web page.

Also note that, dll files in ASP.NET are also accessible by development team only. Clients and users cannot access them. If they do, the architecture and the design of application is poor. HTML content is at-any-case required by the client to actually render your website. However, the HTML content can be compressed and minified using libraries, which make it really tough for anyone to read the content and understand how it works. You can look into many algorithms, or services, such as GZIP to compress the content. You can also try to minify the JavaScript or CSS stylesheets.

One of the PHP obfuscator, is PHP protect - Free PHP obfuscator[^]. You can use it to secure your website, just from a potential reader or any other developer. HTML code would still be sent down to the client; PHP code would be make harder for reverse engineering only.


这篇关于如何在服务器中使PHP代码不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆