Latest Articles
-
Return Multiple Values From Function Using Arrays In PHP
If you are a C/C++ programmer, then you know that functions can not return more than one value. To over come this, they use Call by Reference – where address of the variables is passed, hence whenever the value in the passed address changes, the value of the actual variable changes without anything being returned. [...]
Aug.21, 2010 | Continue reading
-
Find Position of Left most Vowel: JavaScript
Develop and demonstrate a xhtml file which uses javascript program to find the first occurrence or the left most vowel in the user entered string. Input: A String. Output: Position of the left most or first occurrence of the vowel in the user entered string. Video Explaining The JavaScript Code: YouTube Link: http://www.youtube.com/watch?v=ni3diSb5Y40 [Watch the [...]
Aug.20, 2010 | Continue reading
-
Roots of Quadratic Equation: JavaScript
Quadratic Equations are of the form ax2 + bx + c = 0. To find roots(root1 and root2) of such an equation, we need to use the formula Video Explaining The JavaScript Code To Find Roots of a Quadratic Equation: YouTube Link: http://www.youtube.com/watch?v=Td6QViKdbZU [Watch the Video In Full Screen.] To calculate the roots of a [...]
Aug.15, 2010 | Continue reading
-
Generating Fibonacci Series using JavaScript
Today lets see how to generate Fibonacci Series using JavaScript programming. First Thing First: What Is Fibonacci Series ?Fibonacci Series is a series of numbers where the first two Fibonacci numbers are 0 and 1, and each subsequent number is the sum of the previous two. Its recurrence relation is given by Fn = Fn-1 [...]
Aug.12, 2010 | Continue reading
-
CSS Hover Over Effect ( CSS pseudo class )
There are many small simple tweaks in CSS that can highly enhance the over all design of a web page. CSS Hover Over Effect is one of them. The CSS pseudo class which is used to accomplish hover over effect is: :hover Note: CSS pseudo classes doesn’t work on Internet Explorer. So while learning this, [...]
Jul.26, 2010 | Continue reading
-
PHP Comments, String Concatenation, Addition of Numbers & Hello World
Today lets see these 4 basic things:1. The classic “Hello World” program.2. Comment system in PHP.3. Concatenation of Strings.4. Addition of Numbers. Classic “Hello World” program Program to output simple string 1 2 3 <?php echo "Hello World"; ?> Comments: 1 // This is single line comment 1 # This is also a single line [...]
Jul.13, 2010 | Continue reading
-
First PHP program & Worst Practices To Avoid
We can embed php inside html tags and html tags inside php codes, but whatever it is – your php file name must end with a .php extension, so that the parser can identify that the file contains php code and it must also look for <?php and ?> codes inorder to recognise the codes [...]
Jul.12, 2010 | Continue reading
-
Accessing localhost Web-server on Mac and PC
Make sure that you turn on the Wamp if you are on a PC and Mamp if you are on Mac. PC users can access their web files using the URL http://localhost/ Mac users can access their web files using the URL http://localhost/~yourUserDirectory yourUserDirectory is the user account name of your Mac computer using which [...]
Jul.11, 2010 | Continue reading
-
Named Anchors In HTML – For Internal Linking
Often times we spend a lot of time and end up preparing a lengthy document thinking it will be helpful, but as a matter of fact people can’t scroll up and down to find what they are looking for – instead they will goto Google and search for some other sites. In this situation “Named [...]
Jul.10, 2010 | Continue reading
-
Links For Installing WAMP, MAMP, XAMPP
These are the official websites and your goto place if you want to know anything about these technologies. They have a detailed documentation and large community of users who are always willing to help. Note: Full Form of PHP Earlier PHP was called “Personal Home Page”. Now PHP is “PHP: Hypertext Preprocessor”. Apache: httpd.apache.org PHP: [...]
Jul.09, 2010 | Continue reading
