such as /a/b/1.jsp?a=1&b=1

can get URL extensions

Get the file path

Get the filename

Get the parameters

Get domain name


Not perfect with parse_url() or pathinfo()

closed as off-topic by Nicolas Raoul Jan 10 at 3:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • I think that get URL extensions and Get the parameters are identical, and you should use $_GET['a'], etc. But all of this is very easily searchable (and asked on the wrong site). – Mawg Jan 10 at 11:23

Browse other questions tagged or ask your own question.