+-+-+ +-+ +-+-+-+-+
|G|O| |4| |H|I|V|E|
+-+-+ +-+ +-+-+-+-+

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

[PHP] Navigations

BY: @thenaman047 | CREATED: July 11, 2017, 2:46 p.m. | VOTES: 2 | PAYOUT: $0.00 | [ VOTE ]

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 separator 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.

TAGS: [ #programming ] [ #technology ] [ #blog ] [ #tricks ] [ #learn ]

Replies

@steemcleaners | July 11, 2017, 5:16 p.m. | Votes: 1 | [ VOTE ]

Source: https://ram-sethu-need-help.blogspot.com/2009/10/php.html

Not indicating that the content you copy/paste (including images) is not your original work could be seen as plagiarism.

Some tips to share content and add value:
- Using a few sentences from your source in “quotes.” Use HTML tags or Markdown.
- Linking to your source
- Include your own original thoughts and ideas on what you have shared.

Repeated plagiarized posts are considered spam. Spam is discouraged by the community and may result in action from the cheetah bot.

Thank You! ⚜

If you are the author, please reply and let us know!

@thenaman047 | July 11, 2017, 5:21 p.m. | Votes: 0 | [ VOTE ]

I understand.

@azaan | July 21, 2017, 5:16 p.m. | Votes: 0 | [ VOTE ]

got nothing more to say?

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>