]> PHP | Web Developer Reference Blog

PHP Objects, The Basics

Friday, February 26th, 2010

I have come across classes very often and use classes distributed on phpclasses.org such as phpMailer, an excellent class for sending emails using PHP. A class allows programmers to separate code from the main systems while being able to access and define variables for access outside the class, inside the class or just within one function in the class.

In this article I will discuss the general structure of a simple class and usage of a simple “HELLO” class as an example.

(more…)

Server-Side Or Client-Side Scripting?

Thursday, February 25th, 2010

This is an issue every web developer faces when setting up his/her website. I have posed a few scenarios and selected which the best solution for the job.

(more…)

SQL injection, examples and prevention

Thursday, February 25th, 2010

What is SQL Injection

SQL injection is the practice of exploiting applications in order to gain access to and manipulate a database. In this article I will discuss examples and prevention in PHP/MySQL.

(more…)

What is PHP?

Thursday, February 25th, 2010

PHP is a server-side scripting language whose primary purpose is to generate HTML content. Its creator, Rasmus Lerdorf defines it as ‘a cross-platform, HTML-embedded, server-side web scripting language’. With the current direction of the Web, it is easily being adapted to writing out all forms of XML content as well. The most recent version of PHP at time of writing is PHP 5.

(more…)