answersLogoWhite

0


Best Answer

There are many options to encode and encrypt PHP source code, the most common one being Zend Guard. However it must be noted that using any encryption method will require that the server on which the application is run to have the correct extension to decrypt and decode the PHP source code.

An alternative to encryption is to compile to bytecode. Bytecode is used as intermediate by the compiler, so it has no problem using it, and it provides a little speed boost (one step is already completed). Bytecode is less secure because the code is not encrypted, but simply rendered into a format hard to read for humans but native to computers.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

PHP is a server side language so the user doesn't see the code. There is no need to lock the source code for it. If you are working with files on php there are some functions to lock the files: http://www.w3schools.com/php/func_filesystem_flock.asp

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you encrypt PHP source code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is meaning of PHP is an open source software?

It means that the source code of PHP (not PHP code, but the C/C++ code used to build the PHP binary) is published and available to anyone. It also means that anyone can contribute fixes and improvements to the source code.Read more here: open-source


Why you do not see any PHP code when you view the source code of a PHP page in the browser?

PHP is server-side, the browser itself does not interpret it. Rather, the browser sends a query to the server, and the PHP scripting generates custom HTML document. It is this HTML that you are seeing the source code of.


How do you compile php code?

If you are looking to create an executable (.exe) file on windows then I highly recommend this program to compile your php source code to an exe file.


Free source code on online examination using PHP and MySQL?

yes


What is a tool that converts PHP source to Java source?

Converting PHP code into Java code would not work correctly; The two languages work in two completely different ways, rendering such a tool practically useless.


What does an index php signify?

PHP is an open-source scripting language used to code websites and webpages. An index php is a page used on a web server as the main frontpage for the website.


What is the purpose of the Planet source code?

The Planet Source Code website is dedicated to providing millions of lines of source code examples and thousands of tutorials. Programing languages covered include PHP. Java, C++, SQL and Delphi.


How do you preview PHP source output?

The only true form of previewing PHP source output is to run the PHP script in question.


Php Source code for validation?

If you wish to check the syntax of your source code, you need to run the code through the PHP CLI with the -l option. There are also some online resources to validate the syntax. This will check only the syntax of your file. This will not however detect runtime errors or logic errors. You must absolutely run the script for the best possible code validation.


What are semantics in PHP?

In PHP, semantics refer to the meaning of code or how statements are interpreted by the PHP engine. It involves understanding how code functions and interacts with other elements in a PHP script. Proper semantics ensure that the code behaves as expected and follows the established rules of the PHP language.


How is PHP code designated in a webpage?

PHP code is never executed by the web browser, and the source code of a PHP file will normally not be sent to the browser at all. In this sense, there is no designation of PHP code on the client's side-- it all appears to be HTML, text, XML, or whatever other type of output you choose to produce. On the server side, PHP scripts are inside of files ending in ".php". Script inside of these PHP files start with . Anything outside of these tags will be sent to the browser as static ("unchanging") output. The code inside the PHP tags start from the top, and are executed sequentially from top to bottom, unless flow control is used to modify the control of the scripts (such as functions, while loops, switch and if constructs, etc).


Website of free java project to be download with source code?

which Website for free java project to be download with source code Free Download Project in asp.net,Java ,C#.Net ,Php on thisWebsite www.enggroom.com