How do I detect a websites full url for a prtable script?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mgs019
Forum Newbie
Posts: 1
Joined: Wed Jan 31, 2007 9:52 am

How do I detect a websites full url for a prtable script?

Post by mgs019 »

I am making a small module to be portable. Part of its function requires that it can identify the website it is in to see whether the site is registered.

Any ideas how I can do this? Is there a php function that is like geturl() or something?

Martin
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Check $_SERVER variables.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply