Archive for the ‘Basic Programming’ Category
Tuesday, November 25th, 2008
Image Source: moonsdesigns.com
Before you can start with your PHP programming, you will surely need some few things handy. To be able to create a PHP page, you will need to have a simple text editor. A text editor is a small program that ...
Posted in Basic Programming | No Comments »
Sunday, August 10th, 2008
Image Source: www.pragprog.com
Did you know that looping statements doesn’t loop the whole if-else statement if you put an if-else statement in the looping statement? That’s right. Looping statements only goes through the if-else statements once. Once the looping statement activates the statements inside the if-else statement, the looping statement will ...
Posted in Advanced Programming, Basic Programming, Information, Sample Code | No Comments »
Tuesday, July 1st, 2008
Arrays are what tables are to C-based programming languages and what databases are for SQL-based languages. Arrays or tables as they are sometimes called can be used to store the contents of several variables and to create one, you use the following syntax:
Array(key=>value)
The array in the syntax refers to the ...
Posted in Basic Programming, Sample Code | No Comments »
Sunday, June 1st, 2008
The first step to get us on our way to programming in PHP would be to set up an ideal development environment. You need a Web Server software like Apache (which would be what we are going to use) which is only one of many out there. Most of these ...
Posted in Basic Programming | No Comments »
Thursday, May 29th, 2008
If you have been browsing the web foir quite sometime, then you might have come across cookies which allows your browser to remember passwords and other information that may have anything to do with your actions on a particular website. These can be preferences that would allow the browser or ...
Posted in Basic Programming, Sample Code | No Comments »
Sunday, May 25th, 2008
There are a lot of programmers who share code and sample applications which you can use for free (provided you clear it up first) but for budding programmers, they're all there for the taking. Sites like <a href="http://websitetips.com/php/">websitetips.com</a>, <a href="http://www.smartwebby.com/PHP/default.asp">Smartwebby.com</a> and many other blogs and help sites allows access to ...
Posted in Basic Programming, Sample Code | No Comments »
Wednesday, May 21st, 2008
Thanks to the basic foundation on which PHP is founded on, the language being free of all legalities and other stuff that makes deployment of other languages on the many platforms quite expensive. But the many people who makeup the PHP community are not ones who keep knowledge to themselves ...
Posted in Basic Programming, Sample Code | No Comments »
Saturday, May 17th, 2008
As stated in the previous entry, shortening or simplifying your source code makes it easier and better when you need to find bugs and a good example of this would be :
Example :
if ($Mickey == true) echo 'Welcome to the Mickey Mouse Club House';
elseif ($MainCharacter == false) echo 'Hi Barney!';
Making ...
Posted in Basic Programming, Sample Code | No Comments »
Tuesday, May 13th, 2008
Many people are using PHP for development and most have truly mastered the art of programming the easy way round. Sadly, many older web sites that used these older styles of programming are not only long but reminiscent of reading something similar to alien writing that is long and incomprehensible ...
Posted in Basic Programming, Sample Code | No Comments »
Friday, May 9th, 2008
There used to be an old saying in PHP that a control structure needs a single constant to locate it and a set of brackets to clear it all up. Well, that might all be true but using too many of these curly brackets when it isn't needed at all ...
Posted in Basic Programming, Sample Code | No Comments »