Archive for the 'php' Category

Future of PHP

Thursday, October 25th, 2007

The fact that PHP is an open source programming language makes a great case against its competitors. It has a cheap, fast, reliable and widely supported environment to run in, therefore it is mainly used in standard web deployment, not only large enterprises. PHP became the most popular language on the Internet in 2002, and […]

Read the rest of this entry »

Debugging PHP Scripts

Thursday, October 25th, 2007

Probably the most frustrating part of the development process is debugging. Even the most experienced programmers take their time to debug and improve their applications; if you're a beginner, this should be an essential step in your learning. Remember that a computer application doesn't do what you want it to do, it does what you […]

Read the rest of this entry »

PHP Database Manipulation

Thursday, October 25th, 2007

One of the defining features of PHP is the ease with which you can connect to and manipulate databases. PHP implements functions for connecting to a wide range of databases systems: MySQL, Oracle, MSSQL, Interbase, dBase, and many more. While there are many commercial database systems which cost thousands of dollars and provide thousands of […]

Read the rest of this entry »

PHP Sessions

Thursday, October 25th, 2007

Besides cookies, there is another way to pass information to different web-pages: sessions. A session-enabled page allocates unique identifiers to users the first time they access the page, and then reassociates them with the previously allocated ones when they return to the page. Any global variables that were associated with the session will then become […]

Read the rest of this entry »

PHP Cookies

Thursday, October 25th, 2007

During a complex project, there are times when you want to send data from one web-page to another. For example, in an e-commerce web-site, it is essential that you store the contents of a shopping cart while the user is browsing your site. In order to do this, there are two easy ways: you either […]

Read the rest of this entry »

File Handling PHP

Thursday, October 25th, 2007

PHP includes a lot of built-in functions for handling files and directories. You can read, write, delete, and get lots of information on files thru the use of these functions. Note that before you start working with files, you have to make sure that you have the right permissions that will allow you to manipulate […]

Read the rest of this entry »

Expanding PHP Classes

Thursday, October 25th, 2007

While you can always modify a class to add more properties and methods, there is a better way to create a more complex class based on a simple one. Extending existing classes by creating new classes which inherit their parent class properties and methods may come in handy when you need to create more classes […]

Read the rest of this entry »

Object Oriented Programming In PHP

Thursday, October 25th, 2007

One of the most common programming concepts in the world is OOP, which stands for Object-Oriented Programming. Using this technique, programmers manipulate objects, which are made of functions and variables, instead of manipulating the functions and variables themselves. Let's say that you develop an e-commerce web-site. You could use an object to manage a shopping […]

Read the rest of this entry »

PHP Functions

Thursday, October 25th, 2007

Functions are the most important part of any programming language, PHP included. You can say in a few words that functions are pieces of code that accept values and produce results. While there are functions that you don't need to supply any values to, a function which does nothing is pointless. Functions come in handy […]

Read the rest of this entry »

PHP Loop Structures

Thursday, October 25th, 2007

The ability to perform repetitive tasks is a very important aspect of any programming language. Imagine an array with 500 elements. You wouldn't want to write 500 statements to read 500 elements. Instead, you can write a single loop statement that will perform an action to all 500 elements. A loop […]

Read the rest of this entry »