SlideShare a Scribd company logo
1 of 1
<?php
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
$v1 =
$v2 =
$v3 =

= explode(",", urldecode(getenv('QUERY_STRING')));
array_shift($vars);
array_shift($vars);
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 on the thread so if people are confused or need explaining, reply or PM
me.
That's it for the navigation as I am not going to do the other due to they're
everywhere else and I wanted to be different and show everyone this method.

More Related Content

What's hot

The Magic Of Tie
The Magic Of TieThe Magic Of Tie
The Magic Of Tiebrian d foy
 
Perl Fitxers i Directoris
Perl Fitxers i DirectorisPerl Fitxers i Directoris
Perl Fitxers i Directorisfrankiejol
 
New in cakephp3
New in cakephp3New in cakephp3
New in cakephp3markstory
 
London XQuery Meetup: Querying the World (Web Scraping)
London XQuery Meetup: Querying the World (Web Scraping)London XQuery Meetup: Querying the World (Web Scraping)
London XQuery Meetup: Querying the World (Web Scraping)Dennis Knochenwefel
 
Creating a keystroke logger in unix shell scripting
Creating a keystroke logger in unix shell scriptingCreating a keystroke logger in unix shell scripting
Creating a keystroke logger in unix shell scriptingDan Morrill
 
Client-side Storage 
Client-side Storage Client-side Storage 
Client-side Storage Tobias Wolf
 
Future of HTTP in CakePHP
Future of HTTP in CakePHPFuture of HTTP in CakePHP
Future of HTTP in CakePHPmarkstory
 
Up.Php
Up.PhpUp.Php
Up.Phpwsoom
 
PHP Data Objects
PHP Data ObjectsPHP Data Objects
PHP Data ObjectsWez Furlong
 
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan SessionPemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan SessionNur Fadli Utomo
 

What's hot (19)

JavaScript patterns
JavaScript patternsJavaScript patterns
JavaScript patterns
 
The Magic Of Tie
The Magic Of TieThe Magic Of Tie
The Magic Of Tie
 
String function
String functionString function
String function
 
C99
C99C99
C99
 
Php 101: PDO
Php 101: PDOPhp 101: PDO
Php 101: PDO
 
Mysql DBI
Mysql DBIMysql DBI
Mysql DBI
 
Perl Fitxers i Directoris
Perl Fitxers i DirectorisPerl Fitxers i Directoris
Perl Fitxers i Directoris
 
New in cakephp3
New in cakephp3New in cakephp3
New in cakephp3
 
London XQuery Meetup: Querying the World (Web Scraping)
London XQuery Meetup: Querying the World (Web Scraping)London XQuery Meetup: Querying the World (Web Scraping)
London XQuery Meetup: Querying the World (Web Scraping)
 
Creating a keystroke logger in unix shell scripting
Creating a keystroke logger in unix shell scriptingCreating a keystroke logger in unix shell scripting
Creating a keystroke logger in unix shell scripting
 
Client-side Storage 
Client-side Storage Client-side Storage 
Client-side Storage 
 
Future of HTTP in CakePHP
Future of HTTP in CakePHPFuture of HTTP in CakePHP
Future of HTTP in CakePHP
 
Up.Php
Up.PhpUp.Php
Up.Php
 
My shell
My shellMy shell
My shell
 
PHP Data Objects
PHP Data ObjectsPHP Data Objects
PHP Data Objects
 
zinno
zinnozinno
zinno
 
Table through php
Table through phpTable through php
Table through php
 
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan SessionPemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
 
wget.pl
wget.plwget.pl
wget.pl
 

Similar to [Php] navigations

Similar to [Php] navigations (20)

Barcelona.pm Curs1211 sess01
Barcelona.pm Curs1211 sess01Barcelona.pm Curs1211 sess01
Barcelona.pm Curs1211 sess01
 
Web 8 | Introduction to PHP
Web 8 | Introduction to PHPWeb 8 | Introduction to PHP
Web 8 | Introduction to PHP
 
Coding website
Coding websiteCoding website
Coding website
 
Everything About PowerShell
Everything About PowerShellEverything About PowerShell
Everything About PowerShell
 
PHP Tips & Tricks
PHP Tips & TricksPHP Tips & Tricks
PHP Tips & Tricks
 
Introduction to Perl
Introduction to PerlIntroduction to Perl
Introduction to Perl
 
PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDESPHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
 
Smelling your code
Smelling your codeSmelling your code
Smelling your code
 
The History of PHPersistence
The History of PHPersistenceThe History of PHPersistence
The History of PHPersistence
 
Good Evils In Perl (Yapc Asia)
Good Evils In Perl (Yapc Asia)Good Evils In Perl (Yapc Asia)
Good Evils In Perl (Yapc Asia)
 
Perl Scripting
Perl ScriptingPerl Scripting
Perl Scripting
 
Learning Perl 6
Learning Perl 6 Learning Perl 6
Learning Perl 6
 
Learning Perl 6 (NPW 2007)
Learning Perl 6 (NPW 2007)Learning Perl 6 (NPW 2007)
Learning Perl 6 (NPW 2007)
 
How to stand on the shoulders of giants
How to stand on the shoulders of giantsHow to stand on the shoulders of giants
How to stand on the shoulders of giants
 
Drupal7 dbtng
Drupal7  dbtngDrupal7  dbtng
Drupal7 dbtng
 
tutorial7
tutorial7tutorial7
tutorial7
 
tutorial7
tutorial7tutorial7
tutorial7
 
Quick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHPQuick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHP
 
php plus mysql
php plus mysqlphp plus mysql
php plus mysql
 
Introduction to Perl - Day 2
Introduction to Perl - Day 2Introduction to Perl - Day 2
Introduction to Perl - Day 2
 

More from Vishal Gurujuwada

10 reasons why p cs crash u must know
10 reasons why p cs crash u must know10 reasons why p cs crash u must know
10 reasons why p cs crash u must knowVishal Gurujuwada
 
#Data vault, irc warez (ty 4 moving x)
#Data vault, irc warez (ty 4 moving x)#Data vault, irc warez (ty 4 moving x)
#Data vault, irc warez (ty 4 moving x)Vishal Gurujuwada
 
Copy of a simple tcp spoofing attack
Copy of a simple tcp spoofing attackCopy of a simple tcp spoofing attack
Copy of a simple tcp spoofing attackVishal Gurujuwada
 
A short hacker speak glossary(2)
A short hacker speak glossary(2)A short hacker speak glossary(2)
A short hacker speak glossary(2)Vishal Gurujuwada
 

More from Vishal Gurujuwada (7)

20 great google secrets
20 great google secrets20 great google secrets
20 great google secrets
 
10 security enhancements
10 security enhancements10 security enhancements
10 security enhancements
 
10 reasons why p cs crash u must know
10 reasons why p cs crash u must know10 reasons why p cs crash u must know
10 reasons why p cs crash u must know
 
#Data vault, irc warez (ty 4 moving x)
#Data vault, irc warez (ty 4 moving x)#Data vault, irc warez (ty 4 moving x)
#Data vault, irc warez (ty 4 moving x)
 
A basic unix overview(2)
A basic unix overview(2)A basic unix overview(2)
A basic unix overview(2)
 
Copy of a simple tcp spoofing attack
Copy of a simple tcp spoofing attackCopy of a simple tcp spoofing attack
Copy of a simple tcp spoofing attack
 
A short hacker speak glossary(2)
A short hacker speak glossary(2)A short hacker speak glossary(2)
A short hacker speak glossary(2)
 

[Php] navigations

  • 1. <?php 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 $v1 = $v2 = $v3 = = explode(",", urldecode(getenv('QUERY_STRING'))); array_shift($vars); array_shift($vars); 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 on the thread so if people are confused or need explaining, reply or PM me. That's it for the navigation as I am not going to do the other due to they're everywhere else and I wanted to be different and show everyone this method.