Re: Detecting server info?

From: Date: Tue, 22 Oct 2002 07:12:11 +0000
Subject: Re: Detecting server info?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120865@lists.php.net to get a copy of this message
Leif K-Brooks wrote: > How would I detect the server info for a particular url like the w3c > validator (www.validator.w3.org/) does? For example, when I enter > php.net into it, it says "Apache/1.3.26 (Unix) PHP/4.3.0-dev" in the > server field. Try using fsockopen (http://www.php.net/fsockopen) to open a connection to a server. If you enter a valid GET or POST request (look at the user contributions), the return headers will include the host info. HTH Erwin

« previous php.general (#120865) next »