How to compile PHP source code?
2002-05-14 · · · DEV-CLUB
Summary: We will introduce Zend Encoder, using this tool, we can implement the PHP, thus achieving the purpose of protecting the PHP source code.
How to install Zend ENCODE?
First, go to www.zend.com to register a user https://www.zend.com/add_user.php
Second, after you get the login name and password in your registration mailbox, log in from https://www.zend.com/login.php, if success, will automatically jump back to Zend's home page, then click the navigation on the right side of the first page. The Store in the column, then click Enterprise Products, then click Zend Encoder Unlimited, then click on the right price: $ 2400 below with a Test Drive Available link, then click the Test Drive Available button below the right side, then we Will see Zend's related products, choose the Getit on the right of Zend Encoder Unlimited Test Drive (play button)
Third, after seeing Download, click Step 2: Request Product License, this time zend needs us to provide a Host ID number, this is the unique identifier identifying your computer, you can click on the HOW DO I FIND My Host ID link Download a software that view the identifier, if you are a Windows user, you can enter the following command to get your network card internal number:
IPConfig / ALL
Then you have such a string of characters: physical address........: 00-80-C8-DB-FC-39
This is removed, get your HostiD number 0080c8dbfc39, then copy this character to the Enter Host ID: In the input box, click Request this link, and then send your machine's license agreement to you. In the mailbox.
Four, wait a while, in your mailbox, you can see a letter to Zend Licenseses Created, go to http://www.zend.com/store/pickup.php This place takes the license agreement, this time you There is already a cookie of Zend's website on the machine. So go in and select Step 3: Download Product License, there will be black-backed Download License on the side, click to download the license agreement with Zend_Encoder.dat, then select Step 1: Download The Zend Encoder Unlimited Test Drive V. 1.1. 0, choose the version you need, I use Windows NT / 2K (for PHP 4.0.3 / 4.0.4), another Zend Encoder? Test Drive License Agreement (license agreement), press The "I Accept" button starts to download the Zend Encoder Unlimited program.
How to configure Zend ENCODE?
First, unzip the zendencoderunlimited-testDrive-1 [1]. 1.0-php_4.0.3-windows-i386.zip to the C: / Program Files / Zend Encoder Unlimited directory, then copy the zend_encoder.dat this file to C: / Program Files / In the zend directory, run the install_license.reg registry under the C: / Program files / Zend Encoder unlimited directory, you can compile the PHP source file with Zendenc.exe after success, the format is as follows: Zendenc Source File Name After compiling File name (there are many parameters to view help) Second, now you need to download Zend Optimizer? V. 1.0.0 now, then download Zend Optimizer? V. 1.0.0, then download Zendoptimizer-1 [1] .0.0-php_4.0.4-windows-i386.zip decompressed into the C: / Program Files / Zend Optimizer directory.
Third, modify the php.ini file, increase two lines
Zend_Optimizer.optimization_level = 15
Zend_extension_ts = "C: / Program Files / Zend Optimizer / ZendOptimizer.dll"
Fourth, restart your web server, then use the phpinfo output to look at it, there will be such a paragraph:
This Program Makes Use of the Zend Scripting Language ENGINE:
Zend Engine V1.0.4, Copyright (C) 1998-2000 Zend Technologies
With Zend Optimizer V1.0.0, Copyright (C) 1998-2000, by Zend Technologies
Remember, there is the last line with Zend Optimizer v1.0.0, Copyright (C) 1998-2000, by Zend Technologies means your Zend Optimizer installation is successful.
How to use Zend ENCODER?
Write a test PHPINFO.PHP file:
PHPINFO ();
?>
Then use zendenc phpinfo.php phpinfoencode.php
Get a compiled phpinfoencode.php file, open the code inside has become this:
ZEND 2000112001 1 139 265 x ?? 2?? ~ 佒? ス 箷 z?) E 惺? Yuan 5 韺爕 穯圽 r 怮 悪枨)? A 虲 P 爂 爂 ``IF
錽? A 毱 lf? N? L & r 閅 殓? 4? 21a? 6 ship 446 ┐ 児% 5B? 唴? 蔯?
Execute this phpinfoencode.php file in the browser, discover the heads in the head of the head.