Mannen komen van Mars Tweakers, vrouwen van Venus Bokt
Als het in geen van deze variabelen voorkomt wordt het waarschijnlijk helemaal niet meegestuurd naar de server. Dat is op zich wel logisch, aangezien de server helemaal niks te maken heeft met die anchors. Die zijn alleen bedoeld om aan de clientside naar de juiste positie toe te scrollen.
Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'
Verwijderd
http://www.php.net/manual/en/function.parse-url.php
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| $ php -r 'print_r( parse_url("http://username:password@hostname/path?arg=value#anchor"));' Array ( [scheme] => http [host] => hostname [user] => username [pass] => password [path] => /path [query] => arg=value [fragment] => anchor ) $ php -r 'print_r( parse_url("http://invalid_host..name/"));' Array ( [scheme] => http [host] => invalid_host..name [path] => / ) |