I'm new to SOAP, I work with PHP5 and I got my wsdl file with some functions in my .php file. I'm wondering if I can get the url from the customer who uses my Web Service. I want to validate the url in a php function server-side.
A:
In your server you can try to get $_SERVER['REMOTE_ADDR'] or $_SERVER['HTTP_REFERER'] but i'm not sure if it will help you a lot.
Like Bruno said, sometimes your client don't comes from a webpage.
Brice Favre
2010-06-25 15:28:42
For my project I know the client will come from a webpage, but I tryed the two PHP commands, REMOTE_ADDR work, but HTTP_REFERER return an empty string.
Steve
2010-06-29 03:18:42