PHP Development environment configuration (including encryption program)

Source: Internet
Author: User
Tags interface learn php php file php development environment ultraedit zend visual studio
Program | encryption see the topic of the article, I do not know whether you are interested to see down. "PHP Development environment Configuration" ~ ~ This topic is like asking a person in the street casually: "What do you like to eat?" "The answer is, of course, varied. The following is to say my personal opinion, you master don't laugh. But I think this article for beginners, still have a certain reference significance. Ok. Let ' s begin~

In the machine configuration of the development environment, presumably you Goche elder sister preface to write the program it? But where is it written?

For a friend who is just starting to learn PHP, the first thing to know is that there is not a perfect integrated development environment like Microsoft Visual Studio or Borland in all kinds of PHP development tools.
  
Also, be aware of the nature of PHP. As a simple scripting language, PHP is relatively difficult to develop, regardless of design, in terms of coding, for a skilled PHP developer, the choice of a relatively powerful development tool can play the role of less effort, for beginners, you can better understand the syntax characteristics of PHP.

Let's look at the easiest development tool---the Notepad with the window itself. In my memory, many people like to use Notepad to write some HTML and simple applet. However, Notepad can only be a more convenient Notepad program. I've never seen anyone write hundreds of thousands of lines in Notepad. Write the program of course or to use a relatively professional editor, Notepad can only be used to save the emergency. Powerful text editors like UltraEdit or EditPlus are our first choice. As far as I know, a considerable number of experts are fond of this kind of editor. This kind of editor compared to Notepad, the interface is more user-friendly, the function is needless to say. For example: line number display, different syntax highlighting color display, more powerful search function .... Wait a minute. There was a time when I was deeply attracted by this type of editor (don't Get me wrong). I did not say I was a master of the meaning:). ----But, until one day, I was attracted by another "she", after a period of time to get along, I found that I have been inseparable from "she", willingly, without hesitation, bowed in "her" "Pomegranate skirt" under, and vowed to love "her" "Lifelong"!!! Until I met the next better "she" ~ ~ "This kid see a love one", I seem to have heard someone in the back scold Me (Khan). You must not misunderstand! I said "she" refers to the Zend company produced Zend Development Environment, as a professional development company in PHP, Zend not only developed Zend scripting Language, In the development of tools and related software also have considerable attainments.

The topic we are going to talk about today is the combination of Zend Development environment + Zend Optimizer + Zend encoder three configurations.

The following first to give you a brief introduction Zend Development environment, shortcoming ~ ~

Zend Development Environment

Zend Development Environment is part of the Zend Stduio Development Kit. The new version is supposed to be 3.0, my screenshot Here is 2.6.1 Plus version, the following I will be combined with the 3.0 version to give you a general introduction (Code Analyzer analysis of the picture from Phpe.net).

After starting Zend Development environment, the first thing to look at is the beautiful development interface. She looks more like IntelliJ idea in Java development tools. Because Zend Development Environment (hereinafter referred to as ZDE) is also developed in Java, so it is more expensive to use system resources.

  
(Zde interface)

  
(Zde copyright notice)

The following is an introduction to the features of Zde
1.Auto code Completion automatic padding function (see figure)
  

2.Code Analyzer Code Analysis (newly added functionality in version 3.0) automatically generates an analysis document. So cool~~
  

  

3. Support for PHP5 (new additions to version 3.0).

4. Very useful code collation function. A messy piece of code can be sorted into code that conforms to the PHP coding specification.
  

With such a powerful development tool, of course, there must be a corresponding operating environment to do.

Zend Optimizer

Zend Optimizer is a Zend-produced PHP optimization tool that is installed on the server side of PHP. According to Zend company revealed that the use of this software in some cases can at least improve performance of more than 30%! More importantly, Zend Optimizer is freeware, and she can automatically modify the PHP.ini startup optimization engine according to your choice during the installation process.

In Zend's own words:
The Zend Optimizer? Boosts PHP performance by going over the intermediate code
Generated by the standard Zend Run-time compiler and optimizing it for faster execution.
In addition, it enables PHP installations to read Zend intermediate Code files This were encoded by the Zend encoder? (Zendenc) and the Zend safeguard Suite?

  
(Zend Optimizer Installation interface)

  
(After installing Zend Optimizer on the PHP system page you will find as described above)

Recently saw a friend asked how to encrypt the source code of PHP, the following to talk about Zend Encoder This super strong sources of encryption tools, and this tool has been encrypted source code has no tools to crack.

Zend Enocder

If you need to do a source code encryption PHP project, then Zend Encoder can play her role. The code for many free PHP projects on the web is encrypted with encoder.

  
(Zend Enocder interface and copyright page)

The following is a concrete implementation of the Zend Encoder encryption function:
Open the PHP development tool to write a piece of code:
This is the subject of my high School informatics contest. Number of daffodils. Here is the implementation of PHP.
<?php
/*
* CopyRight (c) 2004,chummy Wu
* All Rights Reserved.
*
* Filename:encoder_test.php
* Author:chummy Wu
* date:1/14/2004
* Introduce: Find the number of daffodils in 100~999 (if three digits abc,abc=a3+b3+c3, then call ABC the number of daffodils)
*/

Echo (the number of daffodils in ' 100~999 is:<br> ');

For ($a =1 $a <=9; $a + +)
{
For ($b =0 $b <=9; $b + +)
{
For ($c =0 $c <=9; $c + +)
{
if ($a * $a * $a + $b * $b * $b + $c * $c * $c = = $a *100+ $b *10+ $c)
{
Echo ($a *100 + $b *10 + $c. ");
}
}
}
}
?>

Create a new folder Encoder_test, save the file as encoder_test.php open Zend Encoder. Select File-> New Project-> Enter a project name, such as test, and then you can see Zend Encoder one More "test" on the left, right-click on Add Files. Add encoder_test.php to the inside. Set the output path, click Target Directory, my path here is C:\Apache group\apache2\htdocs\output last click on the encoder button! The ok! encryption is complete, as shown in the following figure.
  

The following with UltraEdit open just encrypted file, C:\Apache group\apache2\htdocs\output encoder_test.php file, please see!!
  
(encrypted after the display of garbled)

  
Results

Hope this article is helpful to everyone, thank you ~ ~







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.