How to compile PHP source code (Introduction to ZendEncode installation (recommended)

Source: Internet
Author: User
Tags download zend
Some friends have been asking PHP how to protect the source code, just like SCRENC in ASP (although SCRENC has long been capable of cracking ). Thank God, Zend, which has been committed to PHP Development, has brought us the latest ZendEncoder tool to compile PHP source code. For ZendEncoder function introduction please see: http://www.c has been a friend asking PHP how to protect the source code, just like SCRENC in ASP (although SCRENC has long been something to crack ). Thank God, Zend, which has been committed to PHP Development, has brought us the latest Zend Encoder tool to compile PHP source code.

For more information about Zend Encoder, see: http://www.chinaasp.com/sqlbbs/showAnnounce.asp? Id = 588883

Because the Zend Encoder official version requires $2400. So we can only use the restricted version, as if the feature is ready, but it only works for a month.
Now I will bring you together to see if it is so cool .. :)

The installation steps are extremely complex .. I will show you step by step. please keep up with me .. :)

My system environment: WINNT4 + APACHE1.3.17 + PHP4.0.4pl1 (APACHE mode)



I first go to www.zend.com to register a user https://www.zend.com/add_user.php



2. get the login name and password in your registration mailbox, go to your Products, click Zend Encoder Unlimited, and then click Price on the right: $2400 there is a link to Test drive available. click Test drive available at the bottom right of the link. at this time, we will see related Zend products, select the GetIt on the right of Zend Encoder Unlimited Test Drive (play button)



3. have you finally seen the Download button ?? Happy? This is only the beginning. :(. If you see three steps, do not download them immediately. because you do not have the Zend License Agreement, you cannot use it after the download. First, click Step 2: Request Product License. at this time, Zend requires us to provide a host ID, which indicates the unique identifier of your computer, you can click the link on the right side of How do I find my host ID to download a software for viewing identifiers. if you are a WINDOWS user, you can enter the following command to obtain the internal number of your network card.

Ipconfig/all

Then you will get the string Physical Address...: 00-80-C8-DB-FC-39

In this way, remove the-number and obtain your HOSTID number 0080C8DBFC39. copy the character to the input box of Enter host ID: and click the Request link, then the system will send the license agreement for your machine to your mailbox. It may take 24 hours to receive the message.



4. wait .. Finally, I saw a letter titled Zend licenses created in the mailbox. I opened it and asked you to renew it. Therefore, select Step 3: Download Product License. a Download License written in bold is displayed on the edge. click to Download the License agreement named zend_encoder.dat, and then select Step 1: download the Zend Encoder Unlimited Test Drive v. 1.1.0: Select the version you need. I use Windows NT/2 K (for PHP 4.0.3/4.0.4) and a long Zend Encoder? Test Drive License Agreement (License Agreement), press the "I ACCEPT" button to start downloading the Zend Encoder Unlimited program ..



5. the download is complete. The remaining part is the configuration process. Export to the c: \ program files \ Zend Encoder Unlimited directory, copy the zend_encoder.dat file to the c: \ program files \ Zend directory, and run c: \ program files \ Zend Encoder unlimitedinstallinstallinstall_license.regregistration table. after successful registration, you can use the zendenc.exe program to compile the php source file. the format is as follows: zendenc source file name after compilation (you can view many parameters for help)



6. do you think this is the end ?? NO. now, running the compiled file in the browser will only cause garbled characters. You still need from http://www.zend.com/store/free_download.php? Pid = 13 Download Zend Optimizer here? V. 1.0.0. Please check the version download. I downloaded FOR win, and then decompress zendoptimizer-11_12.16.0.0-php_4.0.4-windows-i386.zip to the C: \ Program Files \ Zend Optimizer directory.



7. modify the php. ini file and add two lines.

Zend_optimizer.optimization_level = 15

Zend_extension_ts = "c: \ program files \ zend optimizer \ zendoptimizer. dll"



8. restart your web server and use the PHPINFO output to view the following information:

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, it indicates that your Zend Optimizer has been successfully installed.



9. let's test the power of Zend Encoder!

Write a phpinfo. php file for testing:


Phpinfo ();

?>



Then use zendenc phpinfo. php phpinfoencode. php

Get a compiled phpinfoencode. php file. open it and check that the code in it has become like this:



Zend 2000112001 1 139 265 x ?? 2? ?~?? /Font>? Why? Z ?) E branch? $5 ?? Y ?? \ R? Q ???? )? A? P ??? Gli' if? ? A ?? F? N? L & r? ??? 4? 21a? 6 then 446 then? % 5B ???? ?



Run the phpinfoencode. php file in the browser and find that the Generated by a trial version of the Zend Encoder (TM) line is added at the top.



OK, you have succeeded .. Want to see my output?

Http://zhanzhen.wayall.com/zendencode.htm



I also want to Test Zend Cache Test Drive. I found that there is no FOR WIN .. Vomit blood on the spot .. :(

Which of the following experts will introduce Zend Cache Test Drive installation instructions?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.