Archive for January, 2008
Thursday, January 31st, 2008
As with all programming languages PHP has different variable types such as numeric, character, string and Boolean types. Boolean variables in PHP always return either true or false, integers are whole numbers, floating points are decimal or scientifically notated and strings are a chain of characters. Sounds familiar, well they ...
Posted in Basic Programming | No Comments »
Saturday, January 26th, 2008
The major notable difference with PHP against other languages with regards to variables is that PHP is more "intelligent". In C for example, variables have to be explicitly defined as either numeric or alpha-numeric and can only be used to store that defined specific form of data. PHP like all ...
Posted in Basic Programming | No Comments »
Monday, January 21st, 2008
Now, to make you a better programmer we all know the value of comments. This allows you to understand the code that you have written defining and given meaning to operations as you build them up. You start with the terminators used by PHP and end with them as well. ...
Posted in Basic Programming, Sample Code | No Comments »
Wednesday, January 16th, 2008
As you might have seen, all of the PHP statement ends with �;� which would be somewhat similar to Perl. The valid HTML code that was handed back to the server was :
Who are You?
My name is MacGyver.
More in the coming posts when we dig deeper as we widen our ...
Posted in Basic Programming, Sample Code | No Comments »
Friday, January 11th, 2008
The first post had you making a program that was equivalent to the "Hello World" program used for teaching basics of a programming language and here's how it worked. When the script was requested by opening the web page, Apache intercepted the request and passed it onto PHP which parsed ...
Posted in Basic Programming | No Comments »
Sunday, January 6th, 2008
Now that you have installed the necessary web server software and tested that it works (which is included in the manual) we can now get to know the basics of PHP. For our guide we will be using HTTP combined with PHP, this allows PHP code to be embedded ...
Posted in Basic Programming, Sample Code | No Comments »