Skip to content

Instantly share code, notes, and snippets.

@smujohnson
Created September 28, 2012 22:59
Show Gist options
  • Save smujohnson/3802509 to your computer and use it in GitHub Desktop.
Save smujohnson/3802509 to your computer and use it in GitHub Desktop.
sjohnson@web1:~/bin$ url_deparse
feature enabled: decryption
feature enabled: colour plaintext
http://smu/bogus/?q=h.cart.ecart&t=3&dm=2&a=view&g=supp,grp,&l[supp]=TBM&l[grp]=E&supp=TBM&grp=E&boid=330519&u=102246
parse_url results:
Array
(
[scheme] => http
[host] => smu
[path] => /bogus/
[query] => q=h.cart.ecart&t=3&dm=2&a=view&g=supp,grp,&l[supp]=TBM&l[grp]=E&supp=TBM&grp=E&boid=330519&u=102246
)
parse_str results for key: query
[q] => h.cart.ecart
[t] => 3
[dm] => 2
[a] => view
[g] => supp,grp,
[l] =>
[supp] => TBM
[grp] => E
[supp] => TBM
[grp] => E
[boid] => 330519
[u] => 102246
^C
sjohnson@web1:~/bin$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment