PHP 5/MySQL Programming potx

465 892 0
PHP 5/MySQL Programming potx

Đ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

[...]... mod _php5 .c 7 Add the following line to the end of the file: AddType application/x-httpd -php php 8 Save httpd.conf and restart Apache to ensure the changes are permanent Exploring the PHP Environment TRA Chapter 1 5 Copy it to your C:\windows directory 12 PHP 5/MySQL Programming for the Absolute Beginner Adding PHP to Your Pages Now that you’ve got PHP installed, it’s time to add some code See that PHP. .. how to do these things: • Download and install Apache • Download and install PHP • Configure Apache to recognize PHP 5.0 • Configure PHP to run extensions used in this book (including MySQL and XML) • Ensure PHP is on your system • Run a basic diagnostic check of your PHP installation • Add PHP code to a Web page 2 PHP 5/MySQL Programming for the Absolute Beginner Introducing the Tip of the Day Program... This approach has many advantages: 6 PHP 5/MySQL Programming for the Absolute Beginner The PHP Environment The PHP environment is a series of programs and library files These programs are unusual because the user never runs them directly Instead, a user requests a PHP program from a Web server and the server calls upon PHP to process the instructions in the file PHP then returns HTML code, which the... the spyMaster .php Program 394 Building the viewQuery .php Program 399 Viewing the editTable .php Program 401 Viewing the editRecord .php Program 402 Viewing the updateRecord .php Program 402 Viewing the deleteRecord .php Program 404 Viewing the addRecord .php Program 404 Viewing the processAdd .php Program ... easiest way to determine if PHP exists on your server is this: Write a simple PHP program and see if it works Here’s a very simple PHP program that greets the user and displays all kinds of useful information about the development system Adding PHP Commands to an HTML Page Hello in PHP Hello in PHP ... a server that supports PHP, it’s not a bad idea to look through the rest of this chapter You need to know how to check the configuration as well as how to change it (if you’re allowed) Downloading the PHP Program The examples in this book use PHP 5.0, which is available on the accompanying CD You can also go to http://www .php. net to get the PHP Windows binaries You can install PHP wherever you wish,... so all my PHP programs are in proximity 1 See install.txt in the PHP directory This is a very important document Be sure to look at it carefully and follow its instructions 2 Find the numerous dll files in the PHP directory 3 Make sure the dll files are in the same directory as PHP. exe When you tell Apache how to find PHP, it will also find these important files 11 4 Find a file called php. ini-recommended... 9 Installing PHP 10 Downloading the PHP Program 10 Telling Apache about PHP 11 Adding PHP to Your Pages 12 Adding PHP Commands to an HTML Page 12 Examining the Results 13 Configuring Your Version of PHP 15 Safe... example, to add a domain name After installing PHP, change httpd.conf to tell Apache where it can find PHP Stay tuned—I show you how to do that once PHP is installed Running Your Local Server The Apache directory has an htdocs subdirectory Any files you want displayed on your local server must be in this directory or its subdirectories 10 PHP 5/MySQL Programming for the Absolute Beginner TRA P You... but it bypasses the local server That means PHP programs will not work correctly PHP code must be called through a formal http call, even if it’s localhost All PHP code will be in an htdocs directory’s subdirectory, unless you specifically indicate in your httpd.conf file that you want another directory to be accessible to your Web server Installing PHP The PHP environment is a series of programs and . alt=""

Ngày đăng: 29/03/2014, 04:20

Từ khóa liên quan

Mục lục

  • PHP 5 / MySQL Programming for the Absolute Beginner

    • Cover

    • Contents

    • Introduction

    • Chapter 1: Exploring the PHP Environment

    • Chapter 2: Using Variables and Input

    • Chapter 3: Controlling Your Code with Conditions and Functions

    • Chapter 4: Loops and Arrays

    • Chapter 5: Better Arrays and String Handling

    • Chapter 6: Working with Files

    • Chapter 7: Writing Programs with Objects

    • Chapter 8: XML and Content Management Systems

    • Chapter 9: Using MySQL to Create Databases

    • Chapter 10: Connecting to Databases within PHP

    • Chapter 11: Data Normalization

    • Chapter 12: Building a Three-Tiered Data Application

    • Index

    • Team DDU

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

  • Đang cập nhật ...

Tài liệu liên quan