Re: Re: Detecting server info?

From: Date: Tue, 22 Oct 2002 13:02:18 +0000
Subject: Re: Re: Detecting server info?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-120893@lists.php.net to get a copy of this message
try reading about HTTP/1.1 specifications. It describes the headers related to this info. -- Maxim Maletsky maxim@php.net www.PHPBeginner.com // where PHP Begins "Erwin" <erwin@isiz.com> wrote... : > 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#120893) next »