Tài liệu PHP in a Nutshell doc

372 6.4K 0
Tài liệu PHP in a Nutshell doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... help and information Chapter 2, Installing PHP, explains how to obtain and install PHP Chapter 3, The PHP Interpreter, covers the PHP interpreter and its use for running PHP programs on a web server or on the command line Chapter 4, The PHP Language, covers PHP syntax, variables, control structures, includes, and user-defined functions Chapter 5, Variables and Constants, examines the different variable... local machine This chapter goes through a full install of PHP on Windows and Unix, installing extensions, and also configuring settings in the php. ini configuration file Installing on Windows For installation on Windows, you need to download the Windows binary zip package from http://www .php. net/downloads .php This contains the main PHP executables and DLLs, plus many extensions pre-compiled and ready... & Associates, Inc All rights reserved Installing Apache The first step to install Apache is to download the Windows installer from http:// httpd.apache.org This is packaged using the Microsoft Installer system (MSI), so you may be prompted to install the MSI software if you have an older release of Windows As Apache is packaged into a friendly installer, you need only answer a few basic questions and... Programming by Stephen Kochan and Patrick Wood (Sams) General Unix and C programming is very similar to PHP, so you can learn a lot about PHP by learning about the Unix shell Upgrading to PHP 5 by Adam Trachtenberg (O’Reilly) The only book to buy if you want a stress-free guide to migrating from PHP 4 to 5 Web Database Applications with PHP and MySQL by Hugh Williams and David Lane (O’Reilly) A mixed bag... plus, for example More importantly, many people who had a large investment in PHP 4 are trying to migrate their code to the new release with minimum breakage Fortunately for all of us, it’s not too hard to retain backward compatibility, and it’s very easy to take advantage of the many new features So, welcome to PHP I think you’ll find it a fun, interesting, and flexible language that might finally disprove... orientation, the addition of try/catch error handling, and exceptions, there are two major new extensions: SimpleXML, a fast and easy-to-learn way to interact with XML documents, and SQLite, a new flat-file database API that eases the burden of deploying simple database solutions Advantages of PHP If you ask a group of PHP programmers why they use PHP, you will hear a range of answers—“it’s fast,”... provides a consistent interface to many different database packages Chapter 15, Regular Expressions, covers some powerful ways to process strings, including matching, extracting substrings, and replacing text Chapter 16, Manipulating Images, shows how to create and alter images with the GD library that ships with PHP Chapter 17, Creating PDFs, shows how to create PDFs in PHP using PDFlib xii | Preface This... managed by PHP, and the Zend Engine automatically cleans up allocated memory after every script has finished This means that you do not need to worry about closing database links, freeing memory assigned to images, and so on, because PHP will do it for you That isn’t to say you should be lazy and make PHP do all the work—there are functions available for you to specifically clean up your memory, and... chapter, using /var/www/html as the HTML directory What those commands will give you is a working installation of Apache (installed into /usr/local/apache2) and a working installation of PHP in /usr/local/lib /php The two are not joined as yet, though The next step is to configure Apache to use PHP As root, open up /usr/local/ apache2/conf/httpd.conf in your favorite text editor Search for “LoadModule”—... PHP 1 Introduction to PHP PHP hasn’t always been around, so what came before it? More importantly, why was PHP created in the first place? In this chapter, we’ll look at the history behind PHP, where it has advantages over other programming languages, and where you can get help to further your PHP programming career PHP History Contrary to what some might have you believe, there was a lot of activity . the PHP language and its implementations, and discusses where to get help and information. Chapter 2, Installing PHP, explains how to obtain and install PHP. Chapter. SimpleXML, a fast and easy-to-learn way to interact with XML docu- ments, and SQLite, a new flat-file database API that eases the burden of deploying simple database

Ngày đăng: 15/02/2014, 16:20

Mục lục

  • Table of Contents

  • Preface

    • Audience

    • Assumptions

    • Contents of This Book

    • Conventions Used in This Book

    • Using Code Examples

    • Safari® Enabled

    • How to Contact Us

    • Acknowledgments

    • Introduction to PHP

      • PHP History

      • Advantages of PHP

        • The HTML Relationship

        • Interpreting Versus Compiling

        • Output Control

        • Performance

        • Getting Help

          • The Documentation

          • Mailing Lists

          • IRC

          • Conferences

          • User Groups

          • Submitting a Bug

Tài liệu cùng người dùng

Tài liệu liên quan