Home Page Icon
Home Page
Table of Contents for
Dedication
Close
Dedication
by Matt Rutledge
PHP Game Programming
Dedication
Acknowledgments
About the Author
About the Series Editor
Letter from the Series Editor
Introduction
Introduction to the World of PHP
So What Is All This Server Stuff?
Understanding the Client/Server Relationship
The Web Server
Sessions and Session Variables
TCP/IP
Installing the IIS Web Server
Installation on Windows 2000/XP Professional
Installation on Windows 98
Installing the Apache Web Server on Windows ME/XP
Installing the Apache Web Server on UNIX
Waging the Configuration War
The Platforms
Building and Installing PHP on UNIX
Installation on Windows for IIS/Apache
Testing Your Installation
I Have Conquered the Server, Let Me at the Code!
The Basics of the HTML Tag
The Almighty HTML Document
The HTML Body
Graphics and HTML
Creating Forms for Input
Conclusion
Enter the Language
Say Hello to PHP
Creating a PHP Page
Data Types
Type Casting
Variable Variables
Constants
Naming Conventions
Functions for Variables
Functions for Strings
Regular Expressions and Pattern Matching
Processing Forms with PHP
Conclusion
Operators, Statements, and Functions
Operators
Statements
Functions
The Magic of Including Files
Conclusion
Arrays, Games, and Graphics
Arrays!
Initializing Arrays
Using Strings for Indexes
Looping through Sequential Arrays
Looping through Non-Sequential Arrays
Multi-Dimensional Arrays
Sorting Arrays
Your First PHP Game
Conclusion
Playing with Chess and Databases
Non-Relational Databases
Creating and Opening a Database
Looping through the Database
Inserting an Entry into Your Database
Updating an Entry in Your Database
Deleting an Entry from Your Database
Chess Programming: A Quick Overview
Starting the Chess Game
Working with the Pieces
Getting the User Input and Modifying the Database
Conclusion
GD Graphics Overview
What Is GD?
Installing GD
Creating and Using a New Image
How to Use Colors
Drawing Basic Shapes on Your Empty Canvas
Creating Images with Text
Saving Your Images
Using Existing Images
Conclusion
Creating Battle Tank and Using Dynamic Terrain
Planning Battle Tank
Creating the Graphics
Creating the Game Logic
Creating Dynamic Terrain
Conclusion
Extras and Final Projects
PHP and Sockets
Socket Basics
Creating a Server
Creating the Client
Integrating Sockets with Battle Tank
Conclusion
Kiddy Cartel—Creating Your Own MMO
Installing mySQL
Relational Databases: A Quick Rundown
Kiddy Cartel: The Rules and Specifications
Creating Your Base Actions
Creating a Command with Sub-Commands
Creating a Command without Sub-Commands
Look at All the Commands…Now What?
Conclusion
Building Your PHP Skills
PHP and Ming
How to Create a Flash Movie
Drawing to Your Flash Movie
Filling Objects with Ming
Adding Animation to Your Flash Movie
Adding ActionScript to Your Flash Piece
Conclusion
Appendixes
HTML Language Reference
<!-- and <--> Comment
!DOCTYPE
A
ADDRESS
APPLET
AREA
B
BASE
BASEFONT
BDO
BGSOUND
BIG
BLINK
BLOCKQUOTE
BODY
BR
BUTTON
CAPTION
CITE
CODE
COL
COLGROUP
DD
DFN
DIR
DIV
DL
DT
EM
EMBED
FIELDSET
FONT
FORM
FRAME
FRAMESET
HEAD
HN
HR
HTML
I
IFRAME
IMG
INPUT
KBD
LABEL
LI
LINK
MAP
MARQUEE
META
NOFRAMES
OBJECT
OL
OPTION
P
PARAM
PRE
SAMP
SCRIPT
SELECT
SMALL
SPAN
STRONG
SUB
SUP
TABLE
TD
TEXTAREA
TH
TITLE
TR
U
UL
PHP Language Reference
Apache Functions
Array Functions
Aspell Functions
BCMath Functions
Calendar Functions
Date and Time Functions
DBA Functions
Directory Functions
Dynamic Extension Loading
Encryption Functions
Execution Functions
Forms Data Format Functions
File System Functions
General Math Functions
HTTP Functions
Image Functions
IMAP Functions
Informix Functions
LDAP Functions
Mail Function
PHP Options
Miscellaneous Functions
Network Functions
NIS Functions
Perl-Compatible Regular Expression Functions
Regular Expression Funcitons
Semaphore and Shared Memory Functions
Session Functions
SNMP Functions
String Functions
URL Functions
Variable Functions
WDDX Functions
Compression Functions
XML Parser Functions
Support—Debugging Applications
Syntax Errors
Semantic Errors
Logic Errors
PHP and Error Reporting
Handling Errors
Application and Installation Problems
GD SDK Language Reference
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Acknowledgments
Dedication
To Jenai. Thank you.
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset