PHP Examples PART 1 - Helion

ISBN: 978-1-3103-7624-5
stron: 46, Format: ebook
Data wydania: 2014-01-16
Księgarnia: Helion
Cena książki: 4,20 zł
UWAGA: Ebook w języku ANGIELSKIM
PHP Examples, English Edition 2014
Adam Majczak: PHP Examples. PART 1
The "Teach yourself by example" series issued by the Smashwords in 2014.
(Seria "Samouczek na przykładach" wydawnictwa Smashwords)
Część I: Wprowadzenie do PHP, składnia (syntaktyka) języka PHP
Osoby które kupowały "PHP Examples PART 1", wybierały także:
- Tablice informatyczne. PHP7 19,67 zł, (5,90 zł -70%)
- PHP. Koduj czysto i czytelnie. Najlepsze rozwi 65,31 zł, (20,90 zł -68%)
- PHP i jQuery. Techniki zaawansowane. Wydanie II 65,31 zł, (20,90 zł -68%)
- PHP. Kurs video. Tworzenie własnego środowiska na podstawie wzorca MVC 119,00 zł, (53,55 zł -55%)
- Rzeczywistość wirtualna (VR) dla każdego - Aframe i HTML 5. VR w HTML 5 na każdym urządzeniu z Internetem! Wydanie II 24,90 zł, (12,45 zł -50%)
Spis treści
PHP Examples PART 1 eBook -- spis treści
CONTENTS:
PART 1: Introduction to PHP
CHAPTER 1: Introduction to the e-book edition
Similarities and differences: PHP vs. C/C++
What and how can PHP do for us?
What for? To get visitor’s IP, for example
What do I need for beginning?
How to use a web host with PHP support?
How to use PHP?
Embedding PHP
Comments in PHP
How to use PHP interpreter online
Running PHP from the command line
Command line input (STDIN)
CHAPTER 2: PHP variables
Case sensitivity
Error messages and warnings
Data types in PHP
Using constants in PHP
Integer data type
Floating-point numbers
Bool type (Boolean values)
Null type variable and type checking in PHP
Dynamic variables
CHAPTER 3: Operators
Arithmetic operators
Assignment operator and combined operators
Pre / post - increment and decrement operators
Comparison operators
Logical operators
Base converting functions and bitwise operators
Operator precedence
Pozostale części obejmują następujące rozdziały
PART 2: PHP Arrays and iterations
CHAPTER 4: PHP Arrays, array constructor, array types in PHP
Numeric indexed arrays, runtime array size change
Associative arrays and string arrays
Character strings as 1D array
Mixed arrays
Multi-dimensional arrays, hash table
Array elements can be sorted
Internal pointer and some useful functions
CHAPTER 5: If we need conditional statements or loops
If statement (if-elseif-else) and switch-case statement
The while and do-while loops
The for and foreach loops
The break, continue and goto keywords
Filtering mask with binary operators
CHAPTER 6: PHP functions
Argument passing by value and using default values
Variable argument list
Argument passing by reference
Returning an array or modifying values by reference
Locals vs. globals
Variable scope in PHP vs. JavaScript
Math functions
Searching and sorting
Quick binary search
PHP runtime-created functions
Date and time
PART 3: PHP functions and objects
CHAPTER 7: Introduction to OOP
Properties
Creating an object (a class new instance)
Constructor
Destructor
Included and required file(s)
CHAPTER 8: Programming practice
Static methods
Declaring constants within classes
Magic constants
Static properties in use
Recommended OOP practice and The Gold Rule
BC Math functions vs. PHP operators
CHAPTER 9: Object-oriented programming
Inheritance – first glance
Overriding class members
Final keyword and instanceof operator
Access levels before and after inheritance
Generating HTML page using PHP functions
Generating the same HTML page using classes and methods
A few words about PHP scope
Interfaces, abstract classes and traits
Abstract data types (ADT) and the abstract keyword
Traits
PART 4: WEB programming
CHAPTER 10: Data input in PHP
How HTML forms work
Variables and superglobal PHP arrays
Processing forms in PHP
Simple form example and a little more about form processing
Intermixing HTML and PHP
Using PHP interpreter online and JavaScript codes
PHP intermixing with JavaScript, how it works
Information Feedback: Client-Server-Client-Server dialogue
The precise Real Time Clock in PHP
CHAPTER 11: PHP interaction with operating system and file system
PHP interaction with operating systems being system-dependent
Pointer to an external process
Basic file-related functions
More about opening a file by fopen() function
SPLFileObject, SPLFileInfo objects
Directory – related functions
STDIN and STDOUT streams and piping
A simple way to place an image in PHP
How to create graphs and function plots in PHP
CHAPTER 12: Effective programming in PHP
Algorithm complexity and recursive functions
Fibonacci sequence and factorials
Programming errors
Type setting and casting to avoid some errors
CHAPTER 13: Using local storage in JavaScript and with PHP
Counting views in JavaScript on the client side
Single file PHP calculator
PHP Cookies
Creating Cookies in PHP
$_COOKIE[] array and $HTTP_COOKIE_VARS[] array
Deleting cookies
Checking a cookie value in JavaScript
Sessions
PART 5: Advanced PHP
CHAPTER 14: Advanced object oriented programming
Using __set() and __get() methods
Property and function overloading
More about lambda functions and closures
Namespaces
Namespace aliases
CHAPTER 15: Data validation and error handling
Listing form variables
Error handling
Switching form On/Off using a single flag (the simplest validation)
Data validation on the client side (JavaScript)
Validation on the server side using PHP
The
Exception handling
CHAPTER 16: XML, TCP/IP and Real Time data processing
SimpleXML in PHP
XML processing in PHP
The DOM and SimpleXML examples
TCP/IP
How to evaluate real speed of our Client-Server feedback loop
Function call time measuring
Random numbers and a simple PHP game
CHAPTER 17: Simple examples
Shared operating memory in PHP
Login and password – why data encryption is needed
A few words about data encryption in PHP
PART 6: PHP, Appendix
APPENDIX
Polymorphism example
Converting relative path to absolute path
How to get visitor’s IP?
File uploading from user’s disk
Setting timeout on the client side and on the server side
Regular expressions – what it is and what for?
Creating and showing an image gallery
Drawing boxes by intermixing PHP, HTML and CSS
Drawing y = cos( x ) graph in PHP
Unicode in PHP
Simple geo-location based on IP
Some useful links
An ERROR in PHP5 discovered
Backward incompatibilities of PHP 5.5.x
A simple HEREDOC example (drawing rotation clockwise)





