Coding Newbies
Coding Newbies
Coding Newbies
- 1 -
LEGAL NOTICE
The Beginners Guide To PHP Programming
- 2 -
The Publisher has strived to be as accurate and complete as
possible in the creation of this report, notwithstanding the fact that
he does not warrant or represent at any time that the contents
within are accurate due to the rapidly changing nature of the
Internet.
The Publisher will not be responsible for any losses or damages
of any kind incurred by the reader whether directly or indirectly
arising from the use of the information found in this report.
This report is not intended for use as a source of legal, business,
accounting or financial advice. All readers are advised to seek
services of competent professionals in legal, business,
accounting, and finance field.
No guarantees of income are made. Reader assumes
responsibility for use of information contained herein.
The author reserves the right to make changes without notice.
The Publisher assumes no responsibility or liability whatsoever on
the behalf of the reader of this report.
First Kindle Original Edition, April 2008
Copyri ght 2008 by Dave MacGr egor
Published by Avonside Publishing
The Beginners Guide To PHP Programming
- 3 -
All rights reserved. This book may not be reproduced in any form, in whole or in part
(beyond that copying permitted by U.S. Copyright Law, Section 107, fair use in
teaching or research, Section 108, certain library copying, or in published media by
reviewers in limited excerpts), without written permission from the publisher.
The Beginners Guide To PHP Programming
- 4 -
Welcome to the world of programming!
First of all, I would like to congratulate you on your decision to
learn one of the easiest yet powerful programming languages
available PHP.
Web Developers use PHP to create interactive, dynamic websites
while making it easy to update and maintain, not to mention,
prompt your visitors to purchase, join a list or even tell a friend.
What is PHP And Why Should I Learn It?
PHP has been around for over 12 years, first coming onto the
scene in 1995 by a freelance software developer, Rasmus
Lerdorf. He initially used PHP by creating a script that retained a
log of all of the visitors that landed on his webpage.
His script would feature information on how many visits his site
received and other detailed information about his website stats.
As you can imagine, It didnt take long before he started to
receive emails and messages asking how he was able to do this,
and because of the overwhelming interest in his scripts, he
worked to develop PHP into what is now one of the most popular
and widely used programming languages on the Internet.
The Beginners Guide To PHP Programming
- 5 -
Throughout the years, I have seen a number of webmasters ask
the question as to why they should learn PHP. In truth, there are
so many benefits to learning how to implement the power of PHP
into your websites that a list of potential uses would take up this
ebook alone. From managing pages and updating websites
quickly, to creating commercial scripts for profit, the sky is truly
the limit.
Think of all your favorite websites, WordPress, Paypal, eBay or
perhaps FaceBook.
They all use the power of PHP to make their website run smoothly
and efficiently.
Getting Started
First of all, you will need to have access to a web server that is
set up to work with PHP. Dont let this scare you. Typically, most
of the web hosting companies today will offer PHP support, so
you shouldnt have a problem finding one. HostGator.com is an
affordable solution, as is EagerHost.com. Both of these hosting
companies fully support PHP.
Also, I want to make it clear that PHP is not a difficult language to
learn, even if you have never tried to program before. In fact, if
The Beginners Guide To PHP Programming
- 6 -
you are completely new to programming, PHP is often the easiest
way to get started.
In the world of the wide web, there are two general types of
coding languages: Server side and Client side. This means
that one type is run on the web server itself, and the other is run
in your web browser.
PHP happens to be a server side language. All of the processing
is done on the web server itself, and the result is delivered to
your web browser as HTML (which, by the way, is a Client side
language).
To begin, php code looks like this:
<?php