Introduction to PHP, Part 1, Second Edition
By Adam Majczak
()
About this ebook
It is the new Second Edition (updated). The new book covers: new online PHP tools, variables, constants, arrays.
Read more from Adam Majczak
Teach yourself by example Introduction to PHP Rating: 3 out of 5 stars3/5Reference to PHP, Second Edition Rating: 0 out of 5 stars0 ratingsIntroduction to PHP, Part 2, Second Edition Rating: 0 out of 5 stars0 ratingsIntroduction to PHP, Part 5, Second Edition Rating: 0 out of 5 stars0 ratingsIntroduction to PHP, Part 3, Second Edition Rating: 0 out of 5 stars0 ratingsIntroduction to PHP, Part 4, Second Edition Rating: 0 out of 5 stars0 ratings
Related to Introduction to PHP, Part 1, Second Edition
Related ebooks
Introduction to PHP, Part 4, Second Edition Rating: 0 out of 5 stars0 ratingsBeginning PHP: Master the latest features of PHP 7 and fully embrace modern PHP development Rating: 0 out of 5 stars0 ratingsPHP Examples Part 4 Rating: 0 out of 5 stars0 ratingsPHP Error Reporting: How To Do It Right Rating: 0 out of 5 stars0 ratingsMake Bootstrap Themes Rating: 0 out of 5 stars0 ratingsPHP & MySQL Practice It Learn It Rating: 3 out of 5 stars3/5PHP Examples, Part 2 Rating: 1 out of 5 stars1/5PHP for Beginners Rating: 0 out of 5 stars0 ratingsPHP 7 Programming Blueprints Rating: 0 out of 5 stars0 ratingsIntroduction to HTML & CSS Rating: 4 out of 5 stars4/5PHP Examples Part 3 Rating: 5 out of 5 stars5/5Unlock PHP 8: From Basic to Advanced: The next-level PHP 8 guide for dynamic web development (English Edition) Rating: 0 out of 5 stars0 ratingsLearn PHP Programming in 7Days: Ultimate PHP Crash Course For Beginners Rating: 3 out of 5 stars3/5PHP MySQL Development of Login Modul: 3 hours Easy Guide Rating: 5 out of 5 stars5/5P.H.P Simple C.R.U.D Design Rating: 4 out of 5 stars4/5Hypertext Markup Language (HTML) Fundamentals: How to Master HTML with Ease Rating: 0 out of 5 stars0 ratingsPersistence in PHP with Doctrine ORM Rating: 0 out of 5 stars0 ratingsLearning PHP 7 Rating: 4 out of 5 stars4/5PHP for Beginners: Your Guide to Easily Learn PHP In 7 Days Rating: 4 out of 5 stars4/5Instant Handlebars.js Rating: 0 out of 5 stars0 ratingsA concise guide to PHP MySQL and Apache Rating: 4 out of 5 stars4/5HTML, CSS, Bootstrap, Php, Javascript and MySql: All you need to know to create a dynamic site Rating: 4 out of 5 stars4/5Introduction to PHP, Part 3, Second Edition Rating: 0 out of 5 stars0 ratingsNW.js Essentials Rating: 0 out of 5 stars0 ratingsJavaScript: Best Practices to Programming Code with JavaScript: JavaScript Computer Programming, #3 Rating: 0 out of 5 stars0 ratingsHTML Forms & Interactive Elements: Or How to Poke a Zombie in the Eye: Undead Institute, #5 Rating: 0 out of 5 stars0 ratingsResponsive Design High Performance Rating: 0 out of 5 stars0 ratingsJavaScript Mobile Application Development Rating: 0 out of 5 stars0 ratings10 Lessons in Front-end Rating: 2 out of 5 stars2/5
Programming For You
Narrative Design for Indies: Getting Started Rating: 4 out of 5 stars4/5Modern C++ Programming Cookbook Rating: 5 out of 5 stars5/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Python for Finance Cookbook: Over 50 recipes for applying modern Python libraries to financial data analysis Rating: 0 out of 5 stars0 ratingsPython Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5SQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5Python for Beginners: A Crash Course to Learn Python Programming in 1 Week Rating: 0 out of 5 stars0 ratings50 Recipes for Programming Angular Rating: 4 out of 5 stars4/5Learn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5Django Building Dynamic Website With Django : A Complete Step By Step Guide To Learn to Build Modern Web Application with a Python Rating: 0 out of 5 stars0 ratingsLearn Algorithmic Trading: Build and deploy algorithmic trading systems and strategies using Python and advanced data analysis Rating: 0 out of 5 stars0 ratingsPython Projects for Kids Rating: 5 out of 5 stars5/5Python Machine Learning By Example Rating: 4 out of 5 stars4/5Mastering C# and .NET Framework Rating: 5 out of 5 stars5/5Expert Delphi Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Deep Learning For Dummies Rating: 0 out of 5 stars0 ratingsHTML, CSS, & JavaScript All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsSQL All-in-One For Dummies Rating: 3 out of 5 stars3/5ITIL 4: Digital and IT strategy: Reference and study guide Rating: 5 out of 5 stars5/5
Reviews for Introduction to PHP, Part 1, Second Edition
0 ratings0 reviews
Book preview
Introduction to PHP, Part 1, Second Edition - Adam Majczak
Introduction to PHP
Part I
Adam Majczak
C. Adam Majczak, 2015, All Rights Reserved
Smashwords: Second English Edition
(improved and updated)
E-Edition, License Notes
This e-book is licensed for your personal use only. This e-book may not be re-sold or given away to others. To share this book with another person, please purchase an additional copy for each recipient.
While every precaution has been taken in the preparation of this book, the publisher and the author assume no responsibility for errors or omissions, or for damages resulting from any use of the information contained herein.
ENGLISH EDITION
CONTENTS:
Why IT books should be updated?
CHAPTER 1: Introduction to the e-book edition
What is PHP?
What is a PHP File?
How to install a PHP interpreter?
How to test local configuration?
How to use PHP based on Command Line Interface (CLI)?
How to run PHP on a remote server?
Compileonline.com: PHP Page vs. PHP Web View Page
Text output – codepad.org
Embedding PHP
Comments in PHP and including files
CHAPTER 2: PHP variables and constants
Variable names and values
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
Comparison operators
Logical operators
Type cast forcing
Conditional statements (preview)
Base converting functions and bitwise operators
Operator precedence
The ternary operator
CHAPTER 4: PHP Arrays at a glance
Numeric indexed arrays, runtime array size change
Associative arrays
How to add new key => value pairs to associative arrays?
How to format output data?
Why IT books should be updated?
Since 2013 PHP was improved and updated. In this new (improved and updated) edition I am using some new tools available online. Code examples are also checked, updated and improved. This edition includes also new PHP features (for example: generators) to become more complete and more recent.
CHAPTER 1: Introduction to the e-book edition
What is PHP?
PHP is like C and C++, but interpreted (not compiled) server-side universal programming language (named also the server scripting language) used for dynamic websites and interactive web applications. PHP codes as input produce HTML as output. The PHP script is executed on the server, and the plain HTML result is sent back to the browser. Users do not need to install any additional software to be able to view PHP generated web pages. All being required is that the web server has PHP installed in order to interpret PHP scripts.
What is a PHP File?
* PHP files can contain text, HTML, CSS, JavaScript, and PHP code.
* PHP codes are executed on the server, and the result is returned to the client’s browser as a plain HTML.
* PHP files have as default extension *.php (* = file name, php = extension).
* So named pure PHP files contain PHP codes only (without HTML, JavaScript, nor CSS).
In contrast with static HTML sites, PHP sites are dynamically generated. Instead of the site containing a large number of static HTML files, a PHP-based site may consist of only a