Book description
PHP is a simple yet powerful open-source scripting language for creating dynamic web content. The millions of web sites powered by PHP are testament to its popularity and ease of use. PHP is used by both programmers, who appreciate its flexibility and speed, and web designers, who value its accessibility and convenience. Programming PHP is an authoritative guide to PHP 4 and is filled with the unique knowledge of the creator of PHP, Rasmus Lerdorf. This book explains PHP language syntax and programming techniques in a clear and concise manner, with numerous examples that illustrate both correct usage and common idioms. The book also includes style tips and practical programming advice that will help you become not just a PHP programmer, but a good PHP programmer. Programming PHP covers everything you need to know to create effective web applications with PHP. Contents include:
Detailed information on the basics of the PHP language, including data types, variables, operators, and flow control statements
Separate chapters on the fundamental topics of functions, strings, arrays, and objects
Coverage of common PHP web application techniques, such as form processing and validation, session tracking, and cookies
Material on interacting with relational databases, such as MySQL and Oracle, using the database-independent PEAR DB library
Chapters on generating dynamic images, creating PDF files, and parsing XML files with PHP
Advanced topics, like creating secure script, error handling, performance tuning, and writing your own C language extensions to PHP
A handy quick reference to all the core functions in PHP and all the standard extensions that ship with PHP
Table of contents
-
Programming PHP
- Preface
- 1. Introduction to PHP
-
2. Language Basics
- Lexical Structure
- Data Types
- Variables
- Expressions and Operators
- Flow-Control Statements
- Including Code
- Embedding PHP in Web Pages
- 3. Functions
-
4. Strings
- Quoting String Constants
- Printing Strings
- Accessing Individual Characters
- Cleaning Strings
- Encoding and Escaping
- Comparing Strings
- Manipulating and Searching Strings
- Regular Expressions
- POSIX-Style Regular Expressions
- Perl-Compatible Regular Expressions
- 5. Arrays
- 6. Objects
- 7. Web Techniques
- 8. Databases
- 9. Graphics
- 10. PDF
- 11. XML
- 12. Security
- 13. Application Techniques
- 14. Extending PHP
- 15. PHP on Windows
-
A. Function Reference
- PHP Functions by Category
-
Alphabetical Listing of PHP Functions (a-e)
- abs
- acos
- addcslashes
- addslashes
- array
- array_count_values
- array_diff
- array_filter
- array_flip
- array_intersect
- array_keys
- array_map
- array_merge
- array_merge_recursive
- array_multisort
- array_pad
- array_pop
- array_push
- array_rand
- array_reduce
- array_reverse
- array_search
- array_shift
- array_slice
- array_splice
- array_sum
- array_unique
- array_unshift
- array_values
- array_walk
- arsort
- asin
- asort
- assert
- assert_options
- atan
- atan2
- base64_decode
- base64_encode
- base_convert
- basename
- bin2hex
- bindec
- call_user_func
- call_user_func_array
- call_user_method
- call_user_method_array
- ceil
- chdir
- checkdate
- checkdnsrr
- chgrp
- chmod
- chop
- chown
- chr
- chroot
- chunk_split
- class_exists
- clearstatcache
- closedir
- closelog
- compact
- convert_cyr_string
- copy
- cos
- count
- count_chars
- crc32
- create_function
- crypt
- current
- date
- decbin
- dechex
- decoct
- define_syslog_variables
- deg2rad
- dirname
- disk_free_space
- disk_total_space
- dl
- doubleval
- each
- echo
- empty
- end
- ereg
- ereg_replace
- eregi
- eregi_replace
- error_log
- error_reporting
- escapeshellarg
- escapeshellcmd
- exec
- exp
- explode
- extension_loaded
- extract
-
Alphabetical Listing of PHP Functions (f-i)
- fclose
- feof
- fflush
- fgetc
- fgetcsv
- fgets
- fgetss
- file
- file_exists
- fileatime
- filectime
- filegroup
- fileinode
- filemtime
- fileowner
- fileperms
- filesize
- filetype
- flock
- floor
- flush
- fopen
- fpassthru
- fputs
- fread
- fscanf
- fseek
- fsockopen
- fstat
- ftell
- ftruncate
- func_get_arg
- func_get_args
- func_num_args
- function_exists
- fwrite
- get_browser
- get_cfg_var
- get_class
- get_class_methods
- get_class_vars
- get_current_user
- get_declared_classes
- get_defined_constants
- get_defined_functions
- get_defined_vars
- get_extension_funcs
- get_html_translation_table
- get_included_files
- get_loaded_extensions
- get_magic_quotes_gpc
- get_meta_tags
- get_object_vars
- get_parent_class
- get_required_files
- get_resource_type
- getcwd
- getdate
- getenv
- gethostbyaddr
- gethostbyname
- gethostbynamel
- getlastmod
- getmxrr
- getmyinode
- getmypid
- getprotobyname
- getprotobynumber
- getrandmax
- getrusage
- getservbyname
- getservbyport
- gettimeofday
- gettype
- gmdate
- gmmktime
- gmstrftime
- header
- headers_sent
- hebrev
- hebrevc
- highlight_file
- highlight_string
- hexdec
- htmlentities
- htmlspecialchars
- ignore_user_abort
- implode
- import_request_variables
- in_array
- ini_alter
- ini_get
- ini_restore
- ini_set
- intval
- ip2long
- iptcparse
- is_array
- is_bool
- is_dir
- is_double
- is_executable
- is_file
- is_float
- is_int
- is_integer
- is_link
- is_long
- is_null
- is_numeric
- is_object
- is_readable
- is_real
- is_resource
- is_scalar
- is_string
- is_subclass_of
- is_uploaded_file
- is_writable
- is_writeable
- isset
-
Alphabetical Listing of PHP Functions (j-q)
- join
- key
- key_exists
- krsort
- ksort
- lcg_value
- levenshtein
- link
- linkinfo
- list
- localeconv
- localtime
- log
- log10
- long2ip
- lstat
- ltrim
- max
- md5
- metaphone
- method_exists
- microtime
- min
- mkdir
- mktime
- move_uploaded_file
- mt_getrandmax
- mt_rand
- mt_srand
- natcasesort
- natsort
- next
- nl2br
- number_format
- ob_end_clean
- ob_end_flush
- ob_get_contents
- ob_get_length
- ob_gzhandler
- ob_implicit_flush
- ob_start
- octdec
- opendir
- openlog
- ord
- pack
- parse_ini_file
- parse_str
- parse_url
- passthru
- pathinfo
- pclose
- pfsockopen
- php_logo_guid
- php_sapi_name
- php_uname
- phpcredits
- phpinfo
- phpversion
- pi
- popen
- pos
- pow
- prev
- print_r
- printf
- putenv
- quoted_printable_decode
- quotemeta
-
Alphabetical Listing of PHP Functions (r-z)
- rad2deg
- rand
- range
- rawurldecode
- rawurlencode
- readdir
- readfile
- readlink
- realpath
- register_shutdown_function
- register_tick_function
- rename
- reset
- restore_error_handler
- rewind
- rewinddir
- rmdir
- round
- rsort
- rtrim
- serialize
- set_error_handler
- set_file_buffer
- set_magic_quotes_runtime
- set_time_limit
- setcookie
- setlocale
- settype
- shell_exec
- shuffle
- similar_text
- sin
- sizeof
- sleep
- socket_get_status
- socket_set_blocking
- socket_set_timeout
- sort
- soundex
- split
- spliti
- sprintf
- sql_regcase
- sqrt
- srand
- sscanf
- stat
- str_pad
- str_repeat
- str_replace
- strcasecmp
- strchr
- strcmp
- strcoll
- strcspn
- strftime
- stripcslashes
- stripslashes
- strip_tags
- stristr
- strlen
- strnatcasecmp
- strnatcmp
- strncmp
- strpos
- strrchr
- strrev
- strrpos
- strspn
- strstr
- strtok
- strtolower
- strtotime
- strtoupper
- strtr
- strval
- substr
- substr_count
- substr_replace
- symlink
- syslog
- system
- tan
- tempnam
- time
- tmpfile
- touch
- trigger_error
- trim
- uasort
- ucfirst
- ucwords
- uksort
- umask
- uniqid
- unlink
- unpack
- unregister_tick_function
- unserialize
- unset
- urldecode
- urlencode
- user_error
- usleep
- usort
- var_dump
- version_compare
- vprintf
- vsprintf
- wordwrap
- zend_logo_guid
- zend_version
-
B. Extension Overview
-
Optional Extensions Listing
- Apache
- aspell
- BCMath Arbitrary Precision Mathematics
- bzip2 Compression
- Calendar
- CCVS
- clibpdf
- COM
- ctype
- CURL
- Cybercash
- CyberMUT
- dBase
- DBM
- DBM-Style Database Abstraction
- dbx
- DOM XML
- EXIF
- FDF
- filePro
- FriBiDi
- FTP
- gettext
- GMP
- Hyperwave
- ICAP
- iconv
- IMAP, POP3, and NNTP
- Informix
- Ingres II
- InterBase
- IRC Gateway
- Java
- Kerberos
- LDAP
- MCAL
- mcrypt
- mhash
- Microsoft SQL Server
- Ming
- mnoGoSearch
- mSQL
- MySQL
- ODBC
- Oracle
- OvrimosSQL
- pdflib
- Verisign Payflow Pro
- PostgreSQL
- pspell
- Readline
- Recode
- Satellite CORBA Client
- shmop
- SNMP
- sockets
- SWF
- Sybase
- System V Semaphore and Shared Memory
- vpopmail
- WDDX
- XML Parser
- XSLT
- YAZ
- YP/NIS
- ZIP Files
- zlib Compression
-
Optional Extensions Listing
- Index
- Colophon
Product information
- Title: Programming PHP
- Author(s):
- Release date: March 2002
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781565926103
You might also like
book
Programming PHP, 2nd Edition
Programming PHP, 2nd Edition, is the authoritative guide to PHP 5 and is filled with the …
book
Learning PHP
If you want to get started with PHP, this book is essential. Author David Sklar ( …
book
Programming PHP, 3rd Edition
This updated edition teaches everything you need to know to create effective web applications with the …
book
Core PHP Programming, Third Edition
Core PHP Programming, Third Edition is the authoritative guide to the new PHP 5 for experienced …