Click here to Skip to main content
15,921,660 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 15-Sep-16 4:43am

1 solution

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.
 
Share this answer
 
Comments
sadegh_sh 15-Sep-16 10:56am    
I know no one can access my code I mean any body than can login to the webserver control panel cant see my php code exactly like an dll file than every body can use it but cant see what behind it
Afzaal Ahmad Zeeshan 15-Sep-16 12:17pm    
I can't understand. Why would someone be able to access the administration tools on your server?

If they are your developers, then you cannot blindfold the developers while writing the codes. This ends up as, there is no way to hide or make the code invisible on the server because that is required to be there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900