Perl Loop

The Loop Statements Different loop statements in perl… The for Loop The foreach Loop The while Loop The do-while Loop The until Loop The process...

Perl ARGV

@ARGV and %ENV The built-in array @ARGV contains the command line arguments for a Perl program. The following run of the Perl program critic.pl will have...

Perl Hash Maps

Perl Hash Maps/associative arrays ASSIGNING HASH VALUES hash tables consist of key/value pairs every key is followed by a value values can be assigned...

Perl Arrays

Arrays @ Array constants are specified using parenthesis ( ) and the elements are separated with commas. Perl arrays are like lists or collections in other...

Perl Operators

Perl Operators In Perl, the comparison operators are divided into two classes: Comparison operators that work with numbers Comparison operators that work...

Perl List

List A list is a sequence of scalar values enclosed in parentheses. The following is a simple example of a list: (1, 5.3, “hello”, 2) This...

Perl Scalars

Perl Scalars The most basic kind of variable in Perl is the scalar variable. Scalar variables hold both strings and numbers, and are remarkable in that...

PHP Files

PHP File handling PHP includes a lot of built-in functions for handling files and directories. You can read, write, delete, and get lots of information...

PHP Functions

PHP Functions A function is a block of code to perform a specific task. This block of code can be executed anywhere in the program by calling it’s...

PHP Loop

PHP Loop PHP loops are used to execute some code again and again for some definite number of times. There are many types of looping statements in PHP....

PHP Arrays

PHP Arrays An array is a data structure that stores one or more values in a single variable. Each element in the array has its own id. There are 3 types...

PHP Switch

Switch statement The “switch” statement is similar to a series of “If…else” statements. In many occasions, you may want to...

PHP if else

If, If…else, elseif Sometimes we want different actions to be performed for different actions. If, If…Else, and Elseif statements can be used...

PHP String Capitalization

String Capitalization String capitalization is used to change the case of a string. There are three functions for this purpose namely, strtoupper, strtolower...

PHP substr_replace

substr_replace()-Replace a part of string The substr_replace() function is complementary to the function that we discussed earlier – “str_replace()”....

PHP str_replace

str_replace()-Replace a string The “str_replace()” function is used to replace some occurence in a string. It is very much similar to the “replace...

PHP strpos

strpos()-To find the position of a string or character within a string The function, strpos() finds the position of a string within a string. It needs...

PHP strlen

strlen()-To find the length of a string To find the length of a string, we use a function strlen(). Let’s use this function to find the length of...

PHP Concat Strings

Concat Strings Two strings can be concatenated by using the operator dot (.). Let’s see this with an example: <?php $str1="Learn"; $str2="PHP";...

PHP Strings

PHP String A string is a text that might contain characters, numbers or any special character. First of all, we will create a string. Either a string can...

PHP Comments

PHP comments Comment is that part of the code that is not parsed by the parser. The main objective of the comment is to provide necessary notes to the...

PHP Operators

PHP Operators The PHP operators can be divided broadly into 5 categories namely, Arithmetic Operators Assignment Operators Comparison Operators Logical...

PHP Variables

PHP Variables What are variables? Variables are names that store values like strings or numbers. Their values can change at any point in the whole program....

PHP Output

PHP Output To display the result of a PHP script, there are two basic commands. They are echo and print. Both these commands are used in PHP to display...

PHP Basics continued

PHP Basics PHP runs on different platforms. PHP is compatible with almost all servers used today. PHP is FREE to download from the official PHP resource....

PHP Tutorial Basics

PHP is a recursive acronym for “PHP: Hypertext Preprocessor”. It is an open source. It is a server-side scripting language, i.e. the PHP script...

sqlite 10 sec guide

Problem You want to get up and running with sqlite Solution Install sqlite3 on linux, via yum: yum install sqlite3Then just run sqlite dbname Example %...

starting binary – library file not found

Problem Getting an error about not being able to find libraries (file not found), when starting up a binary – such as httpd. Solution You need to...

the fade anything technique

Problem You want to add something flash to your site.A color loads, which you then want to change Solution Well cool “Fade Anything Technique”!Really...

AJAX Specialist

coming soon …