PHP – At Your Service

Table settingPHP is a server-side language as opposed to HTML, CSS, and JavaScript all of which run on the client side.  PHP’s code is never sent to the browser so you will not see it with things like the browser’s “view source” command.  Since it can permanently alter, add,  or delete files from your website security for your PHP code needs to be tight.  I first encountered PHP when I wanted to create my first contact form.  PHP allows you to receive the submitted data, sanitize it, validate it, and use it to send an e-mail.  A PHP code block starts with a .

PHP is also useful for interactions with relational databases such as MySQL.  These databases can store users/passwords, a store catalog, or even the pages of a website.  For example, WordPress uses a PHP framework and loads the various bits and pieces from a database.

I learned PHP using procedural technique.  This means that the code flows from one line to the next employing loops and functions in order to have ongoing processing.  The newer method for using PHP is an object-oriented approach.  This involves creating objects with properties and methods to accomplish the same goals.  Object oriented code runs slightly slower but this is offset by enhanced readability, avoidance of conflicts, and reusability.  These advantages are even more pronounced when coding is performed in groups.

So try your hand at PHP and serve up something delicious!

About Robert

Robert is a novice web site developer. A lack of professional training has not prevented him from creating some very nice websites for small businesses who would otherwise have gone without a web presence.

Subscribe

Subscribe to our e-mail newsletter to receive updates.

No comments yet.

Leave a Reply