Archive for the ‘Basic Programming’ Category
Friday, December 10th, 2010
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 »
Wednesday, November 10th, 2010
PHP may be an easy language to use and learn but there are simple steps most budding programmers forget when it comes to coding in the scripting language of choice for web pages. The quotes, which come in single and double forms. They may seem inter-changeable but they have two ...
Posted in Basic Programming, Sample Code | No Comments »
Sunday, October 10th, 2010
PHP is free! (Most Web hosts provide PHP in even their most basic plans). PHP or the PHP Hypertext Pre-processor is a server-side programming language that gives Web developers it has the ability to build virtually any type of application, from simple contact forms to shopping carts, dynamic job sites, ...
Posted in Basic Programming | No Comments »
Friday, September 10th, 2010
Apache module is a PHP installed Apache configuration files (.httpd) and .htaccess files help its settings to be changed. It also enable or disable PHP safe mode for the entire web server you can use the php.ini file and also allows the file to modify many aspects of PHP configuration.
Posted in Basic Programming | No Comments »
Tuesday, August 10th, 2010
Next in line is array_diff_uassoc() function which compares two or more arrays while checking for differences before comparing the keys with a user-defined location. It then returns an array withthe keys and values from the first array(to which all the values were comapred against) it the function allows it. Syntax ...
Posted in Basic Programming, Sample Code | No Comments »
Saturday, July 10th, 2010
The first function, array_diff() is used for comparing several tables or arrays which gives an array with the keys and values from the first array if the value is not available in the other arrays. Syntax is as follows : array_diff(array1,array2,array3......), where array 1 is the table to which all ...
Posted in Basic Programming, Sample Code | No Comments »
Thursday, June 10th, 2010
The array_count_values() function returns an array which contains the keys of the original array's value and the value is the number of occurences. A sample of it's use is shown below:
Which would give us an output of : Array ( [Mouse]=> 1 [Cat]=> 2 [Dog]=> 1 )
The next functions are ...
Posted in Basic Programming, Sample Code | No Comments »
Monday, May 10th, 2010
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, April 10th, 2010
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 »
Wednesday, March 10th, 2010
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 »