How to get the URL of the requesting server

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

User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: How to get the URL of the requesting server

Post by RobertGonzalez »

$_SERVER is not a reliable global var. Yes, certain portions of that array can be manipulated. The only real way to validate the sender of data is to give them a key and check the key. It is even better if the key is presented over SSL.
User avatar
Mizhad
Forum Newbie
Posts: 13
Joined: Fri Jan 16, 2009 4:04 am
Location: Montreal - Canada

Re: How to get the URL of the requesting server

Post by Mizhad »

Thanks for every body who participating in resolving my problem... The best solution I god is to encode the code by using Zend Guard and providing the user with a key....
Post Reply