Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resolve URL

Status
Not open for further replies.

SaRiD

Programmer
Apr 19, 2003
45
Hi

I was wondering if there was a way to resolve a url.

E.g.
By default the server will return some sort of index page but that filename isn't needed to be entered for the page to load in a browser.

Is there a way in php to find out the name of the page that is loading?

E.g. ->
Not on my own server obviously.

Thanks for your help.
 
Further to that explination

If I wanted to compare two urls:
1. and
2.
Although they are exactly the same page, the strings would be different.

I could just strip off the index.htm from the 2nd url and it would work but it would be wrong if I was comparing it with the page:
I hope this has makes a bit more sense.
 
how are you loading the page? what are you looking to do?

"Computer illiterate is a dirty word."
 
I've been creating my own spider.

So you enter in a url and it creates a sitemap of that site.

It's all working fine, but this is one little issue that keeps arrising as it causes dupilcates in the sitemap.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top