Thursday, August 13, 2009

Get system info on IP of

Friday, April 24, 2009

rewritting, redirecting url(htaccess file)

Htaccess file needs no mention.

Why do we need .htaccess file?
This is file which has all the url rewriting capabilities posted by the web designer. This can completely redirect from one site to the other may be completely new and different from the current.

What we can do in through this file?

Thursday, April 23, 2009

Education quiz and technical help.: Compare two variables in PHP

Education quiz and technical help

Friday, April 17, 2009

Maturity, spirituality, positiveness, yoga for life

Yesterday I was thinking about the processes of life. It was very heartening to know that we the people don't understand the process of life and curse ourselves. Is it really sane to do that. I was smiling at different views, concerns and notions in my heart. I will like to share one thought:
Why do we regret the failure, why do we morose, at times why is the laughter so high and many more.....

For all these to understand and have a balanced life, balanced nature we need to understand the process life cycle of each and everything we pass through. The process as an entity has its life cycle. It has crest and troughs, highs and lows.
So in due course of time we need to understand the process and its complete life cycle.
Once we are done with that than we can smile at a bad, heartening event as well.

So moral is "stand to learn and experience" from any body any process.

Tuesday, April 14, 2009

Compare two variables in PHP

How to compare two variables: or compare two strings or compare two numbers or compare two floats etc. This example demonstrates the comparison of two variables.

1. If you want to compare only the values of any data type variable than use '=='
example: if($a==$b) here the value gets compared..
and the result is 'true'
if $a='1'; and $b=1 or
$a=1 and $b=1.0 etc.

Similarly when we wanted to compare the value and the data type of two variables than we have to use '==='

example
$a="1";
$b="1";
$a===$b output is true.
for all other cases like
$a="1";
$b=1;
Output 'false' as $a is string where as $b is int.

or
$a="1";
$b=1.0;
Output 'false' as $a is string and $b is a float.






Search Engine Optimization and SEO Tools

Include a php file or any file and corresponding functionality/text

How to include a file in php:

There are two ways through which we can add the files.
They are done by using the following functions:
1. include("abc.txt");
2. require("abc.txt");

Php reads the content and execute the file where ever this function gets called.
Difference between include() and require() function. [link]



Difference between include() and require() function.
- The include() function in php file generates a warning
but the rest part of the script continues with execution
- The require() function in php file generates a fatal error and the execution stops than and there only.