1 Intro To PHP
1 Intro To PHP
PHP tutorial f or beginners and professionals provides in-depth knowledge of PHP scripting
language. Our PHP tutorial will help you to learn PHP scripting language quickly.
This PHP tutorial covers all the topics of PHP such as introduction, control statements,
f unctions, array, string, file handling, f orm handling, regular expression, date and time,
object-oriented programming in PHP, math, PHP MySQL, PHP with Ajax, PHP with jQuery
and PHP with XML.
What is PHP?
PHP is an open-source, interpreted, and object-oriented scripting language that can be
executed at the server-side. PHP is well suited f or web development. Therefore, it is used to
develop web applications (an application that executes on the server and generates the
dynamic page.).
PHP was created by Rasmus Lerdorf in 1994 but appeared in the market in 1995. PHP
7.4.0 is the latest version of PHP, which was released on 28 November. Some important
points need to be noticed about PHP are as f ollowed:
Performance:
PHP script is executed much f aster than those scripts which are written in other languages
such as JSP and ASP. PHP uses its own memory, so the server workload and loading time is
automatically reduced, which results in f aster processing speed and better performance.
Open Source:
PHP source code and software are freely available on the web. You can develop all the
versions of PHP according to your requirement without paying any cost. All its components
are f ree to download and use.
Familiarity with syntax:
PHP has easily understandable syntax. Programmers are comfortable coding with it.
Embedded:
PHP code can be easily embedded within HTML tags and script.
Platform Independent:
PHP is available f or WINDOWS, MAC, LINUX & UNIX operating system. A PHP application
developed in one OS can be easily executed in other OS also.
Database Support:
PHP supports all the leading databases such as MySQL, SQLite, ODBC, etc.
Error Reporting -
PHP has predefined error reporting constants to generate an error notice or warning at
runtime. E.g., E_ERROR, E_WARNING, E_STRICT, E_PARSE.
PHP allows us to use a variable without declaring its datatype. It will be taken automatically
at the time of execution based on the type of data it contains on its value.
PHP is compatible with almost all local servers used today like Apache, Netscape, Microsoft
IIS, etc.
Security:
PHP is a secure language to develop the website. It consists of multiple layers of security to
prevent threads and malicious attacks.
Control:
Dif f erent programming languages require long script or code, whereas PHP can do the same
work in a f ew lines of code. It has maximum control over the websites like you can make
changes easily whenever you want.
o HTML
o CSS
o JavaScript
o Ajax
o XML and JSON
o jQuery
Hardware Requirements
If you would like to use a dedicated hosting server for running PHPKB Knowledge Base Software or host
In small instances, server load is primarily driven by peak visitors; however, you may use the following
specifications for optimal performance.
These values are the largest customer instances reported for performance testing. Clustering for load
balancing, database tuning and other performance tuning is recommended for instances exceeding
these values.
Software Requirements
User Requirements
Requirement Details
Apache (Recommended)
Microsoft IIS
Disk Space
A minimum base installation requires at least 8MB of disk space but you should assume that your actual
disk space will be somewhat higher. For example, if you upload file attachments and images for articles,
the actual disk space for your knowledge base could easily be 20 MB or more (exclusive of database
content, media, backups and other files).
Browsers
All modern browsers are supported (IE7+, Firefox, Safari, Google Chrome, Opera) that support CSS and
JavaScript.