Windows Help Center

Your One Stop Blog for all Windows XP and VISTA tricks,tweaks ,hacks and much more.

Followers

Ads By Google

1000 Awesome Things About India

Blog Stats

recent Tricks

Ads By Google

Link Unit By Google

Categories

Register for Free

Google Search

PHP Navigations  

, , , , , , , , , , , , Comments

if($_SERVER['QUERY_STRING'] == "SoD")
 print "owns you!";
else
 print "don't front!";
?>


Description: Instead of calling files like ( index.php?str=blah ) , you could do ( index.php?SoD ) and it would print out "owns you!". You can add more strings in there, this is just an example.



   $vars = explode(",", urldecode(getenv('QUERY_STRING')));
   $v1 = array_shift($vars);
   $v2 = array_shift($vars);
   $v3 = array_shift($vars);

   switch ($v1) {
       case 'first.1': {
           print("This is v1, first string case 'file.php?first.1'.");
           break;
           }
      case 'first.2': {
      switch ($v2) {
           case 'second': {
               switch($v3) {
                   case 'third': {
                     print("This is v3, the last case 'file.php?first.2,second,third'.");
                     break;
                   }
               }
           }
       }
       }
   }


Description: This basically does what the 1st one does but with more strings and a different seperator rather than '&'. I don't really want to go into too much detail 


Subscribe to Windows Help Center by Email and Stay Updated

Link Unit By Google

Search

Subscribe via email

Enter your email address:

Delivered by FeedBurner

Ads By Google

Smart Subscribers

A Note About Comments.

Your response is greatly valued so go ahead and say it! I read all comments and also try to answer each one. Your views are always welcome and every comment is a kind of update so don't hesitate.

Google Ads

Amazing Arts

Amazing Arts
Amazing Arts

Free Text Books

Textbooks.com- Free Shipping- 125 x 125- Red Circle Background

Find Love

Find Love Online! Matchmaker.com