Is there a php code so that if someone visits the page the code can automatically get the url to that page?
I am trying to create dynamic page titles but the pages that are being created are dynamic as well. What I am trying to tell it to do is get the current url, example: http://www.examplesite.com/search/tx/dallas
Then it would work backwards taking "dallas" then "tx" to create a dynamic page title and description:
Dallas, TX Basketball Tournaments
Find Basketball tournaments in Dallas, TX. Join and participate in basketball leagues throughout the city of Dallas.
Whats in bold would pull from the URL. Ooohh any help would be great!