PHP Quick Scripting Reference.pdf
(
3410 KB
)
Pobierz
www.it-ebooks.info
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
www.it-ebooks.info
Contents at a Glance
About the Author ���������������������������������������������������������������������������
�
xiii
Introduction ������������������������������������������������������������������������������������
�
xv
■
Chapter 1: Using PHP
���������������������������������������������������������������������
�
1
■
Chapter 2: Variables
����������������������������������������������������������������������
�
5
■
Chapter 3: Operators
���������������������������������������������������������������������
�
9
■
Chapter 4: String
�������������������������������������������������������������������������
�
13
■
Chapter 5: Arrays
������������������������������������������������������������������������
�
17
■
Chapter 6: Conditionals
���������������������������������������������������������������
�
21
■
Chapter 7: Loops
��������������������������������������������������������������������������
�
25
■
Chapter 8: Functions
�������������������������������������������������������������������
�
29
■
Chapter 9: Class
��������������������������������������������������������������������������
�
35
■
Chapter 10: Inheritance
���������������������������������������������������������������
�
39
■
Chapter 11: Access Levels
�����������������������������������������������������������
�
43
■
Chapter 12: Static
������������������������������������������������������������������������
�
47
■
Chapter 13: Constants
�����������������������������������������������������������������
�
51
■
Chapter 14: Interface
�������������������������������������������������������������������
�
55
■
Chapter 15: Abstract
�������������������������������������������������������������������
�
59
■
Chapter 16: Traits
������������������������������������������������������������������������
�
61
■
Chapter 17: Importing Files
���������������������������������������������������������
�
63
■
Chapter 18: Type Hinting
�������������������������������������������������������������
�
67
iii
www.it-ebooks.info
■
Contents at a GlanCe
■
Chapter 19: Type Conversions
�����������������������������������������������������
�
69
■
Chapter 20: Variable Testing
��������������������������������������������������������
�
73
■
Chapter 21: Overloading
��������������������������������������������������������������
�
77
■
Chapter 22: Magic Methods
��������������������������������������������������������
�
81
■
Chapter 23: User Input
�����������������������������������������������������������������
�
87
■
Chapter 24: Cookies
��������������������������������������������������������������������
�
93
■
Chapter 25: Sessions
�������������������������������������������������������������������
�
95
■
Chapter 26: Namespaces
�������������������������������������������������������������
�
97
■
Chapter 27: References
�������������������������������������������������������������
�
103
■
Chapter 28: Advanced Variables
�����������������������������������������������
�
107
■
Chapter 29: Error Handling
��������������������������������������������������������
�
111
■
Chapter 30: Exception Handling
������������������������������������������������
�
117
Index���������������������������������������������������������������������������������������������
�
121
iv
www.it-ebooks.info
Introduction
PHP is a server-side programming language used for creating dynamic websites and
interactive web applications. he acronym PHP originally stood for “Personal Home
Page,” but as its functionality grew this was changed to “PHP: Hypertext Preprocessor.”
his recursive acronym comes from the fact that it takes PHP code as input and produces
HTML as output. his means that users do not need to install any software to be able
to view PHP generated web pages. All that is required is that the web server has PHP
installed in order to interpret the script.
In contrast with HTML sites, PHP sites are dynamically generated. Instead of the site
being made up of a large number of static HTML iles, a PHP site may consist of only a
handful of template iles. he template iles describe only the structure of the site using
PHP code, while the web content is pulled from a database and the style formatting from
a Cascading Style Sheet (CSS). his provides a lexible website that allows for site-wide
changes from a single location, providing a site that is easy to design, maintain and
update with new content.
When creating websites with PHP a Content Management System (CMS) is generally
used. A CMS provides a fully integrated platform for website development consisting of a
backend and a frontend. he frontend is what visitors see when they arrive to the site, while
the backend is where the site may be conigured, updated and managed by an administrator.
he backend also allows a web developer to change template iles and modify plugins, to
more extensively customize the functionality and structure of the site. Examples of free
PHP-based CMS solutions include WordPress, Joomla, ModX and Drupal, with WordPress
being the most popular and accounting for more than half of the CMS market.
he irst version of PHP was created by Rasmus Lerdorf and released in 1995.
Since then PHP has evolved greatly from a simple scripting language to a fully featured
web programming language. he oicial implementation is now released by he PHP
Group, with PHP 5.5 being the most recent version as of writing. he language may be
used free of charge and is open source, allowing developers to extend it for their own use
or contribute to its development.
PHP is by far the most popular server-side programming language in use today.
It holds a growing 75% market share when compared with other server-side technologies
such as ASP.NET, Java, Ruby and Perl. One of the reasons for the widespread adoption
of PHP is its platform independence. It can be installed on all major web servers and
operating systems and used together with any major database system. Another strong
feature of PHP is its simple-to-use syntax based on C and Perl, which is easy to learn for a
newcomer but also ofers many advanced features for a professional programmer.
xv
www.it-ebooks.info
Plik z chomika:
chordad
Inne pliki z tego folderu:
pro_php_programming.pdf
(18140 KB)
learning_php_design_patterns.pdf
(20040 KB)
Missing Manual - PHP&mySQL.pdf
(26155 KB)
high_performance_mysql_3rd_edition.pdf
(12664 KB)
programming_php_3rd_edition.pdf
(10206 KB)
Inne foldery tego chomika:
Pliki dostępne do 01.06.2025
Pliki dostępne do 19.01.2025
►Mapy Wojskowe Topograficzne Polski 1979-89 (3 CD)
00-AI
00-Algorithms-Information
Zgłoś jeśli
naruszono regulamin