Experienced programmers may not need to study outside, and can use PHP as any other server programming language to host HTML to the browser and other uses, most of these programmers prefer a simple text editor, usually such a soft experience to provide you with some useful tools, such as syntax color emphasis, The parentheses are in contrast, or the tag ends automatically, and most of these features are only intended to help you out of your mind, but it doesn't really help you write the program.
Now the most exciting tool to use PHP has emerged, called Zend Studio, when the book was written in a second edition, a product that combines a powerful debugging tool (though still not a WYSIWYG tool) to edit the environment, This smart main product can help you to significantly save on checking the correct PHP function syntax repetition time, so that you can quickly eliminate errors, because development time is money, so the slight cost of this product will make you more productive, you can really find this IDE's symbol know PHP syntax, Zend Studio is the first development tool not just redesigned to achieve some purpose, and figure 3-1 is the usage interface diagram for Zend Studio.
As you can see in Figure 3-1, Zend Studio allows you to execute a PHP program and preview the output of the HTML in a window, and you don't need to view the original code by using a browser, and this method is not a standard result and is not a luxury display written, While the Debug tool provides tools to provide you with powerful support, you can check the code on line or jump in or out of function checks, set breakpoints, stack trace processing, track all the file's entire domain and private variables or check a specific number of content, in such a simple GUI interface, You will be reminded of the potential dangers of using undeclared variables, grammatical color emphasis and in-process drawdown can be easily adjusted freely, new users can avoid the use of Emacs or VI control inconvenience, And the automatic completion of the program can save you repeatedly check the PHP online instructions (such as whether it is strreplace or str_replace, and the parameters of the sequence of the contents and so on), you can use your HTML when using the program auto-completion function, Especially when you have to memorize the properties that are allowed for each tag, you can even register your own defined function or auto-complete the list, making it easier to use without having to refer to the function definition again, which is handy if you are going to pass a series of arguments to a function. When you use a library that is larger, more complex, and requires a large number of functions, you will find that the IDE can help you more.
Keep in mind that your development side is not going to use the same operating system as the server servers, which is the greatest value for cross-platform development, especially if you use UNIX servers (even the Blues), we have two document editors: Emacs and VI, Even the Macintosh and Windows have more friendly instrument tools for using interfaces. UNIX, on the other hand, makes it easy for you to support client operating systems for multiple machines. Many developers have some of the best features in the design of these tools, and Emacs,vi and Zend Studio are editors that can work on many major platforms, so if your development team uses the standard tools described above, people can use these tools in many of their operating system preferences.
Table 3-2 shows some of the editors used by most programmers to work from a large operating system.
If you want to develop between many operating systems, remember to break the break with some characters in W indows and the Unix slaughter is incompatible, the UNIX format of the break will then show a black color on the Notepad symbol, and the Windows break format in the UNIX system Editor looks ∧m characters, Your PHP program may still be working fine, but you may be crazy about using files that are edited on different platforms, and for many reasons the best way to solve such line-breaking problems is to use a version control system like CVS.
In addition to these well-known options, Keith Edmunds maintains a detailed list of text editors for PHP, many of which are free or require only a little fee.
http://phpeditors.dancinghippo.com/
Take a deep breath, after all the installation and setup, now you should be able to write your first PHP program.
Table 3-2 PHP Editors that are more common on different platforms
Summary
Before we can use PHP, we need to decide whether to build our own mainframe, outsource, or adopt a compromise solution, such as hosting. In this decision-making process, the most important factors are the cost, size and flow of the website, the special hardware or software requirements, the type of content and the expectations of the control. External web hosting services are the best choice for small sites with no special needs.
If you decide to build or maintain a development server yourself, detailed installation guidelines and instructions are provided earlier in this chapter for most common platforms. Although there are many different types of Web servers supported by PHP4, there are no official documentation on the details of their installation until the time of this book's release.
Finally, the reader may want to know which development tool is best for PHP. Most PHP developers use their favorite text editors to write programs before they are specifically part of PHP's Integrated development Environment (IDE). It is possible to add PHP functionality to a so-called [WYSIWYG] editor, but it looks cluttered.
The above is the PHP learning book-The third chapter (sequel) content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!