CS310 Handouts Merge PDF by DL
CS310 Handouts Merge PDF by DL
Prepared by DL...
May You All Stay Success in your Whole Life,
Ameen! Summ Ameen... Just Remember us
in your Deep Prayers. JazakAllah...
PHP is a server scripting language, and a
powerful tool for making dynamic and
interactive Web pages.
P -> PHP
H -> Hypertext
P -> Preprocessor
It is powerful enough to be at the core of the
biggest blogging system on the web
(WordPress)!
Images
PDF files
Flash movies
XHTML
XML.
PHP runs on various platforms (Windows,
Linux, Unix, Mac OS X, etc.)
PHP is free.
<?php
// PHP code goes here
?>
Extension of PHP page should be .php
PHP statements end with a semicolon (;)
To get the PHP running at your computer you
will need to
install a web server
install PHP
install a database, such as MySQL
WAMP is a combine
package of Windows, Apache, MySQL
and PHP.
.
VertrigoServ is easy to install package
consisting of
<?php
echo "Hello World!";
?>
</body>
</html>
WEEK 2
In PHP there are two basic ways to get output:
echo
h andd print.
i t
echo "<h2>$txt1</h2>";
echo "Study PHP at $txt2<br>";
h $
echo $x + $
$y;
?>
The following example shows how to output
text with the print command (notice that the
text can contain HTML markup)
<?php
print "<h2>PHP
<h2>PHP is Fun!</h2>";
Fun!</h2> ;
print "Hello world!<br>";
print "I'm about to learn PHP!";
?>
A comment in PHP code is a line that is not
read/executed as part of the program. Its only
purpose is to be read by someone who is
looking at the code.
Comments can be used to:
<!DOCTYPE html>
<html>
<body>
<?php
$color = "red";
echo "My
My car is " . $color . "<br>";
<br> ;
echo "My house is " . $COLOR . "<br>";
echo "My boat is " . $coLOR . "<br>";
?>
</body>
</html>
A variable can have a short name (like x and
y) or a more descriptive name (age,
studentname, total_volume).
A variable starts with the $ sign, followed by
the name of the variable
A variable
i bl name must start with i h a lletter or the
h
underscore character
A variable name cannot start with a number
A variable name can only contain alpha-
numeric characters and underscores (A-z, (A z, 0-
0
9, and _ )
Variable names are case-sensitive ($age and
$AGE are two diff
different variables)
i bl )
In PHP, a variable starts with the $ sign,
followed by the name of the variable:
E
Example:
l
<!DOCTYPE html>
<html>
<body>
<?php
$
$txt = ""Hello
ll world!";
ld "
$x = 5;
$y = 10.5;
echo $txt;
echo "<br>";
echo $x;
echo
h "<br>";
" b "
echo $y;
?>
</body>
</html>
After the execution of the statements above,
the variable $txt will hold the value Hello
world! the variable $x will hold the value 5,
world!, 5
and the variable $y will hold the value 10.5.
Note: Unlike other programming languages,
PHP has no command for declaring a variable.
It is created the moment you first assign a
value to it.
Variables can store data of different types, and
different data types can do different things.
PHP supports the following data types:
String
I t
Integer
Float (double)
Boolean
Array
Object
NULL
A string is a sequence of characters, like
"Hello world!".
A string can be any text inside quotes. You
can use single or double quotes:
<?php
$x = "Hello world!";
$y = 'Hello world!';
echo $x;
echo "<br>";;
echo $y;
?>
An integer is a whole number (without
decimals). It is a number between -
2,147,483,648 and +2,147,483,647.
An integer must have at least one digit (0-9)
An integer cannot contain comma or blanks
An integer must not have a decimal point
An integer can be either positive or negative
Integers can be specified in three formats:
decimal (10-based),
(10 based) hexadecimal (16(16-based
based
- prefixed with 0x) or octal (8-based -
prefixed with 0)
<?php
$x = 5985;
var_dump($x);
?>
<?php
$x = 10.365;
var_dump($x);
?>
A Boolean represents two possible states: TRUE
or FALSE.
$x = true;
$y = false;
A variable
i bl off d
data type NULL iis a variable
i bl that
h
has no value assigned to it.
IIn other
h languages
l such
h as C,
C C++,
C and
d Java,
J
the programmer must declare the name and
type of the variable before using it
it.
<?php
$x = 5;
$y = 4;
echo $x + $y;
$x = “Pakistan”
Pakistan
Echo $x
?>
In PHP, variables can be declared anywhere in
th script.
the i t
To do
T d this,
hi use theh global
l b lkkeyword
dbbefore
f the
h
variables (inside the function):
<?php
$x = 5;
$y = 10;
ffunction
i myTest()
T () {
global $x, $y;
$y = $x + $y;
}
myTest();
y ();
echo $y; // outputs 15
?>
Normally, when a function is
completed/executed, all of its variables are
deleted. However, sometimes we want a local
variable NOT to be deleted
deleted. We need it for a
further job.
myTest();
myTest();
T ()
myTest();
?>
A string is a sequence of characters, like "Hello
world!".
The PHP strlen() function returns the length of
a string.
Th example
The l b
below
l returns the
h llength
h off the
h
string "Hello world!":
<?php
echo strlen("Hello
strlen( Hello world!");
world! ); // outputs 12
?>
The PHP str_word_count() function counts the
number of words in a string:
<?php
echo str_word_count(
str word count("Hello
Hello world!");
world! );
// outputs 2
?>
The PHP strrev() function reverses a string:
<?php
echo strrev("Hello world!");
// outputs !dlrow olleH
?>
The PHP strpos() function searches for a
specific text within a string.
If a match
h is
i found,
f d the
h function
f i returns the
h
character position of the first match. If no
match is found
found, it will return FALSE
FALSE.
The example below searches for the text
"world" in the string "Hello world!":
<?php
? h
echo strpos("Hello world!", "world");
// outputs 6
?>
The PHP str_replace() function replaces some
characters with some other characters in a
string.
The example below replaces the text "world"
world
with "Dolly":
<?php
echo str_replace("world",
p ( , "Dolly",
y , "Hello
world!"); // outputs Hello Dolly!
?>
For a complete reference of all string
functions, go to complete PHP String
Reference.
http://www.w3schools.com/php/php_ref_stri
ng asp
ng.asp
Syntax
define(name, value, case-insensitive
case insensitive)
Parameters:
name: Specifies the name of the constant
Arithmetic operators
Assignment operators
Comparison operators
Increment/Decrement operators
Logical operators
St i
String t
operators
Array operators
Operator Name Example Result
+ Addition $x + $y Sum of $x and $y
The basic
Th b i assignment
i operator iin PHP is
i "=".
" "
It means that the left operand gets set to the
value of the assignment expression on the
right.
Assignment Same as... Description
x=y x=y The left operand gets set to the value of the
expression on the right
x+
+= y x=x+y Addition
x -= y x=x-y Subtraction
x *= y x=x*y Multiplication
x/
/= y x=x/y Division
x %= y x=x%y Modulus
Operator Name Example Result
<?php
?>
To include the footer file in a page, use the include
statement:
<html>
<body>
Syntax
date(format,timestamp)
Parameter Description
format Required. Specifies the format of the timestamp
timestamp Optional. Specifies a timestamp. Default is the
current date and time
Note that the PHP date() function will return the current date/time
of the server!
The required format parameter of the date()
function specifies how to format the date (or
time).
<?php
echo "Today is " . date("Y/m/d") . "<br>";
echo "Today is " . date("Y.m.d") . "<br>";
echo "Today is " . date("Y-m-d") . "<br>";
echo "Today is " . date("l");
?>
Use the date() function to automatically
update the copyright year on your website:
Example
<?php
echo "The time is " . date("h:i:sa");
?>
If the time you got back from the code is not
the right time, it's probably because your
server is in another country or set up for a
different timezone.
Example
<?php
date_default_timezone_set("Asia/Karachi");
echo "The time is " . date("h:i:sa");
?>
A cookie is often used to identify a user. A
cookie is a small file that the server embeds
on the user's computer.
Syntax
Note: The setcookie() function must appear BEFORE the <html> tag.
<?php
$cookie_name = "user";
$cookie_value = "Ahmed";
setcookie($cookie_name, $cookie_value, time() + (86400
* 30), "/"); // 86400 = 1 day
?>
<html><body>
<?php
if(!isset($_COOKIE[$cookie_name])) {
echo "Cookie named '" . $cookie_name . "' is not set!";
} else {
echo "Cookie '" . $cookie_name . "' is set!<br>";
echo "Value is: " . $_COOKIE[$cookie_name];}
?>
</body></html>
The value of the cookie is automatically URL encoded when sending the
cookie, and automatically decoded when received (to prevent URL
encoding, use setrawcookie() instead).
To delete a cookie, use the setcookie() function with an
expiration date in the past:
Example
<?php
// set the expiration date to one hour ago
setcookie("user", "", time() - 3600,"/");
?>
<html><body>
<?php
echo "Cookie 'user' is deleted.";
?>
</body></html>
WEEK 8
A session is a way to store information (in variables) to
be used across several pages.
Unlike a cookie, the information is not stored on the
users computer.
When you work with an application, you open it, do
some changes, and then you close it. This is much like
a Session.
On the internet there is one problem: the web server
does not know who you are, because the HTTP address
doesn't maintain state.
Session variables solve this problem by storing user
information to be used across multiple pages (e.g.
username etc.). By default, session variables last until
the user closes the browser.
Session variables hold information about one single
user, and are available to all pages in one application.
A session is started with the session_start() function.
Session variables are set with the PHP global variable: $_SESSION.
Now, let's create a new page called "session_demo1.php". In this page,
we start a new PHP session and set some session variables:
Example
<?php
// Start the session
session_start();
?>
<!DOCTYPE html>
<html><body>
<?php
// Set session variables
$_SESSION["favcolor"] = "green";
$_SESSION["favanimal"] = "cat";
echo "Session variables are set.";
?>
</body></html>
Note: The session_start() function must be the very first thing in your
document. Before any HTML tags.
Next, we create another page called
"session_demo2.php". From this page, we will
access the session information we set on the first
page ("session_demo1.php").
<?php
// Echo session variables that were set on previous page
echo "Favorite color is " . $_SESSION["favcolor"] . ".<br>";
echo "Favorite animal is " . $_SESSION["favanimal"] . ".";
?>
</body>
</html>
Another way to show all the session variable values for a user
session is to run the following code:
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<body>
<?php
print_r($_SESSION);
?>
</body>
</html>
Most sessions set a user-key on the user's
computer that looks something like this:
765487cf34ert8dede5a562e4f3a7e12.
Then, when a session is opened on another
page, it scans the computer for a user-key.
If there is a match, it accesses that session, if
not, it starts a new session.
Most sessions set a user-key on the user's
computer that looks something like this:
765487cf34ert8dede5a562e4f3a7e12.
Then, when a session is opened on another
page, it scans the computer for a user-key.
If there is a match, it accesses that session, if
not, it starts a new session.
To remove all global session variables and destroy the session, use
session_unset() and session_destroy():
Example
<?php
session_start();
?>
<!DOCTYPE html>
<html><body>
<?php
// remove all session variables
session_unset();
</body></html>
WEEK 9
Filters are used for
Validating data = Determine if the data is in proper form.
Sanitizing data = Remove any illegal character from the data.
Many web applications receive external input. External
input/data can be:
◦ User input from a form
◦ Cookies
◦ Web services data
◦ Server variables
◦ Database query results
Example
<?php
$str = "<h1>Hello World!</h1>";
$newstr = filter_var($str,
FILTER_SANITIZE_STRING);
echo $newstr;
?>
The following example uses the filter_var() function to first remove all
illegal characters from a URL, then check if $url is a valid URL:
Example
<?php
$url = "http://www.vu.edu.pk";
// Validate url
if (!filter_var($url, FILTER_VALIDATE_URL) === false) {
echo("$url is a valid URL");
} else {
echo("$url is not a valid URL");
}
?>
The following example uses the filter_var() function to first remove all
illegal characters from the $email variable, then check if it is a valid email
address:
Example
<?php
$email = "[email protected]";
// Validate e-mail
if (!filter_var($email, FILTER_VALIDATE_EMAIL) === false) {
echo("$email is a valid email address");
} else {
echo("$email is not a valid email address");
}
?>
The following example uses the filter_var() function to check if
the variable $int is an integer. If $int is an integer, the output of
the code above will be: "Integer is valid". If $int is not an integer,
the output will be: "Integer is not valid":
Example
<?php
$int = 100;
Example
<?php
$int = 0;
Example
<?php
$ip = "127.0.0.1";
2
A free, fast, reliable, easy-to-use, multi-user
multi-threaded relational database system.
SQL (Structured Query Language) is use in
MYSQL database system.
It is freely available and released under GPL
(GNU General Public License ).
Officially pronounced “my Ess Que Ell” (not
my sequel).
3
There are many tools available for handling
MY SQL databases such as:
Examples
$username = “root";
$password = “";
// Create connection
$conn = mysqli_connect($servername, $username,
$password);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());}
// Create database
$sql = "CREATE DATABASE mystudent";
if (mysqli_query($conn, $sql)) {
echo "Database created successfully";
} else {
echo "Error creating database: " . mysqli_error($conn);
} ?>
WEEK 11
The CREATE TABLE statement is used to create a table in
MySQL.
SQL Statement:-
CREATE TABLE Student (
s_id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
firstname VARCHAR(30) NOT NULL,
lastname VARCHAR(30) NOT NULL,
email VARCHAR(50),
reg_date TIMESTAMP
)
Example:-
<?php
$servername = "localhost";
$username = “root";
$password = “";
$dbname = "mystudent";
// Create connection
$conn = mysqli_connect($servername, $username,
$password, $dbname);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
// sql to create table
$sql = "CREATE TABLE student (
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
firstname VARCHAR(30) NOT NULL,
lastname VARCHAR(30) NOT NULL,
email VARCHAR(50),
reg_date TIMESTAMP
)";
if (mysqli_query($conn, $sql)) {
echo "Table student created successfully";
} else {
echo "Error creating table: " . mysqli_error($conn);
}
mysqli_close($conn);
?>
When a database and a table have been
created, we can start adding data in them.
Here are some syntax rules to follow:
The SQL query must be quoted in PHP
<?php
$servername = "localhost";
$username = “root";
$password = “";
$dbname = "mystudent";
$conn = mysqli_connect($servername, $username,
$password, $dbname);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$sql = "INSERT INTO student (firstname, lastname, email)
VALUES (‘Babar', ‘Ali', ‘[email protected]');";
$sql .= "INSERT INTO student (firstname, lastname, email)
VALUES (‘sara', ‘khan', ‘[email protected]');";
$sql .= "INSERT INTO student (firstname, lastname,
email)
VALUES (‘Mahmood', ‘Zakir', ‘[email protected]')";
if (mysqli_multi_query($conn, $sql)) {
echo "New records created successfully";
} else {
echo "Error: " . $sql . "<br>" .
mysqli_error($conn);
}
mysqli_close($conn);
?>
A prepared statement is a feature used to execute the
same (or similar) SQL statements repeatedly with high
efficiency.
Prepared statements basically work like this:
Prepare: An SQL statement template is created and sent to
the database. Certain values are left unspecified, called
parameters (labeled "?"). Example: INSERT INTO student
VALUES(?, ?, ?)
The database parses, compiles, and performs query
optimization on the SQL statement template, and stores
the result without executing it
Execute: At a later time, the application binds the values to
the parameters, and the database executes the statement.
The application may execute the statement as many times as
it wants with different values
Compared to executing SQL statements directly, prepared
statements have two main advantages:
Example:-
$sql = "SELECT * FROM student Orders LIMIT 05";
Example
<?php
echo readfile("webdictionary.txt");
?>
Modes Description
r Open a file for read only. File pointer starts at the beginning of the file
Open a file for write only. Erases the contents of the file or creates a new file
w
if it doesn't exist. File pointer starts at the beginning of the file
Open a file for write only. The existing data in file is preserved. File pointer
a
starts at the end of the file. Creates a new file if the file doesn't exist
Creates a new file for write only. Returns FALSE and an error if file already
x
exists
r+ Open a file for read/write. File pointer starts at the beginning of the file
Open a file for read/write. Erases the contents of the file or creates a new file
w+
if it doesn't exist. File pointer starts at the beginning of the file
Open a file for read/write. The existing data in file is preserved. File pointer
a+
starts at the end of the file. Creates a new file if the file doesn't exist
Creates a new file for read/write. Returns FALSE and an error if file already
x+
exists
The fread() function reads from an open file.
fread($myfile,filesize("webdictionary.txt"));
It's a good programming practice to close all files after you have
finished with them. You don't want an open file running around
on your server taking up resources!
The fclose() requires the name of the file (or a variable that holds
the filename) we want to close:
Example
<?php
$myfile = fopen("webdictionary.txt", "r");
// some code to be executed....
fclose($myfile);
?>
The fgets() function is used to read a single line from a
file.
Example
<?php
$myfile = fopen("webdictionary.txt", "r") or die("Unable to
open file!");
echo fgets($myfile);
fclose($myfile);
?>
Note: After a call to the fgets() function, the file pointer has
moved to the next line.
The feof() function checks if the "end-of-file" (EOF) has been
reached.
Example
<?php
$myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!");
// Output one line until end-of-file
while(!feof($myfile)) {
echo fgets($myfile) . "<br>";
}
fclose($myfile);
?>
The fgetc() function is used to read a single character from a file.
Example
<?php
$myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!");
// Output one character until end-of-file
while(!feof($myfile)) {
echo fgetc($myfile);
}
fclose($myfile);
?>
Note: After a call to the fgetc() function, the file pointer moves to the
next character.
PHP Exception Handling
Creating a custom exception handler is quite
simple.
We simply create a special class with
functions that can be called when an
exception occurs in PHP.
The class must be an extension of the
exception class.
The custom exception class inherits the
properties from PHP's exception class and
you can add custom functions to it.
<?php
class customException extends Exception {
public function errorMessage() {
//error message
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
.': <b>'.$this->getMessage().'</b> is not a valid E-Mail address';
return $errorMsg;
}}
$email = "[email protected]";
try {
//check if
if(filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) {
//throw exception if email is not valid
throw new customException($email);
}
}
catch (customException $e) {
//display custom message
echo $e->errorMessage(); } ?>
The new class is a copy of the old exception class with an addition of the
errorMessage() function.
Since it is a copy of the old class, and it inherits the properties and methods from the
old class, we can use the exception class methods like getLine() and getFile() and
getMessage().
<?php
class customException extends Exception {
public function errorMessage() {
//error message
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
.': <b>'.$this->getMessage().'</b> is not a valid E-Mail address';
return $errorMsg;
}}
$email = "[email protected]";
try {
//check if
if(filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) {
//throw exception if email is not valid
throw new customException($email);
}
}
catch (customException $e) {
//display custom message
echo $e->errorMessage(); } ?>
The customException() class is created as an extension of the old exception class. This
way it inherits all methods and properties from the old exception class
<?php
class customException extends Exception {
public function errorMessage() {
//error message
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
.': <b>'.$this->getMessage().'</b> is not a valid E-Mail address';
return $errorMsg;
}}
$email = "[email protected]";
try {
//check if
if(filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) {
//throw exception if email is not valid
throw new customException($email);
}
}
catch (customException $e) {
//display custom message
echo $e->errorMessage(); } ?>
The $email variable is set to a string that is not a valid e-mail address
<?php
class customException extends Exception {
public function errorMessage() {
//error message
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
.': <b>'.$this->getMessage().'</b> is not a valid E-Mail address';
return $errorMsg;
}}
$email = "[email protected]";
try {
//check if
if(filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) {
//throw exception if email is not valid
throw new customException($email);
}
}
catch (customException $e) {
//display custom message
echo $e->errorMessage(); } ?>
The "try" block is executed and an exception is thrown since the e-mail
address is invalid
<?php
class customException extends Exception {
public function errorMessage() {
//error message
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
.': <b>'.$this->getMessage().'</b> is not a valid E-Mail address';
return $errorMsg;
}}
$email = "[email protected]";
try {
//check if
if(filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) {
//throw exception if email is not valid
throw new customException($email);
}
}
catch (customException $e) {
//display custom message
echo $e->errorMessage(); } ?>
The "catch" block catches the exception and displays the error message
WEEK 14
The fopen() function is also used to create a file. Maybe a
little confusing, but in PHP, a file is created using the same
function used to open files.
If you use fopen() on a file that does not exist, it will create
it, given that the file is opened for writing (w) or
appending (a).
Example
Example
<?php
$myfile = fopen("newfile.txt", "w") or die("Unable to open
file!");
$txt = "Mickey Mouse ";
fwrite($myfile, $txt);
$txt = "Minnie Mouse ";
fwrite($myfile, $txt);
fclose($myfile);
?>
If we now open the "newfile.txt" file, both John
and Jane have vanished, and only the data we
just wrote is present:
file_uploads = On
Next, create an HTML form that allow users to choose the
image file they want to upload:
<!DOCTYPE html>
<html>
<body>
<form action="upload.php" method="post"
enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image"
name="submit">
</form>
</body>
</html>
Some rules to follow for the HTML form are:
Make sure that the form uses method="post"
The form also needs the following attribute:
enctype="multipart/form-data". It specifies which content-type
to use when submitting the form
Without the requirements above, the file upload will not work.
<?php
$target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$uploadOk = 1;
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION);
// Check if image file is a actual image or fake image
if(isset($_POST["submit"])) {
$check = getimagesize($_FILES["fileToUpload"]["tmp_name"]);
if($check !== false) {
echo "File is an image - " . $check["mime"] . ".";
$uploadOk = 1;
} else {
echo "File is not an image.";
$uploadOk = 0;
}
}?>
$target_dir = "uploads/" - specifies the
directory where the file is going to be placed
$target_file specifies the path of the file to be
uploaded
$uploadOk=1 is not used yet (will be used
later)
$imageFileType holds the file extension of
the file
Next, check if the image file is an actual
image or a fake image
Note: Exceptions should only be used with error conditions, and should
not be used to jump to another place in the code at a specified point.
PHP Exception Handling
When an exception is thrown, the code following it will not be
executed, and PHP will try to find the matching "catch" block.
If an exception is not caught, a fatal error will be issued with an
"Uncaught Exception" message.
<?php
//create function with an exception
function checkNum($number) {
if($number>1) {
throw new Exception("Value must be 1 or below");
}
return true;
}
//trigger exception
checkNum(2);
?>
Fatal error: Uncaught exception 'Exception'
with message 'Value must be 1 or below' in C:\webfolder\test.php:6
Stack trace: #0 C:\webfolder\test.php(12):
checkNum(28) #1 {main} thrown in C:\webfolder\test.php on line 6
To avoid the error from the example above, we
need to create the proper code to handle an
exception.
<?php
//create function with an exception
function checkNum($number) {
if($number>1) {
throw new Exception("Value must be 1 or below"); }
return true;
}
//trigger exception in a "try" block
try {
checkNum(2);
//If the exception is thrown, this text will not be shown
echo 'If you see this, the number is 1 or below'; }
//catch exception
catch(Exception $e) {
echo 'Message: ' .$e->getMessage();
}
?>
Simple to understand
Access to your web server
A text editor
An FTP Client
Your web browser of choice
Youmust be able to execute PHP at your web
server
In
simple you web hosting company should
provide PHP and MySQL support
Access to your web server www directory
A text editor
Your web browser of choice
MySQL Database
Access to your web server www or
public_html directory
A text editor
An FTP Client
Click
on the arrow icon in the top right-hand
corner of the menu item/box to expand it.
Click
on the Remove link. The menu
item/box will be immediately removed.
http://themeforest.net/
http://www.themezilla.com/themes/
Plugins tiny pieces of software which are used
to extend and add to the functionality that
already exists in WordPress.
Employee Spotlight
Simple Staff List
OS Our Team
The Theme Customizer allows you to preview
changes to your site before publishing them.
You can also navigate to different pages on
your site to preview them.
Site Title & Tagline
Colors
Header Image
Background Image
Navigation
Widgets
Static Front Page
https://codex.wordpress.org/Appearance_Cust
omize_Screen