Archive for March, 2009

What Is the Best Way to Learn PHP?

Sunday, March 29th, 2009
What Is the Best Way to Learn PHP?

What is the best way to learn scripting languages such as PHP?
The answer depends upon your learning style. Since every person has his own learning style, what works best for someone else may not be the best for you.

People learn and take in information through their five basic senses. On the practical side, it is unlikely that you’ll learn much about scripting PHP from sniffing or tasting it. That leaves the sense of hearing, the (more…)

Php

Monday, March 23rd, 2009
Php

PHP

PHP (PHP: Hypertext Preprocessor) is a computer scripting language originally designed for producing dynamic web pages. It is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications.

While PHP was originally created by Rasmus Lerdorf in 1994, the main implementation of PHP is now produced by The PHP Group and serves as the de facto standard for PHP, as t (more…)

41 Tips for optimizing your php code

Saturday, March 14th, 2009
41 Tips for optimizing your php code

1. If a method can be static, declare it static. Speed improvement is by a factor of 4.

2. echo is faster than print.

3. Use echo’s multiple parameters instead of string concatenation.

4. Set the maxvalue for your for-loops before and not in the loop.

5. Unset your variables to free memory, especially large arrays.

6. Avoid magic like __get, __set, __autoload

7. require_once() is (more…)

Php Gallery in 15 Minutes

Saturday, March 14th, 2009
Php Gallery in 15 Minutes

So, you would like to represent your photo gallery, or portfolio, or shopping cart – any kind of images catalogue,

but do not have a time to develop.

With this article I will show you how to save you time.

First, download EncapsGallery – a set of php scripts, that represent a catalogue of your images (items), with an (more…)

Overview Of The PHP Programming Language

Sunday, March 8th, 2009
Overview Of The PHP Programming Language

PHP is a web scripting language that performs server side operations to produce dynamic content.

The PHP code can be embedded into conventional HTML performing many tasks that were formerly mostly relayed to a separate Common Gateway Interface (CGI) script. Created by Rasmus Lerdorf originally in the form of Perl-based CGI binary files, PHP has become one of the most widely-used scripting languages for the web.

The script, w (more…)