Page 1 of 1

server type/OS in php ?

Posted: Fri Oct 10, 2008 8:57 am
by qwe010
hello

how can i know the server type/OS

for remote server in php ?

i found that

Code: Select all

curl -I hXXp://www.google.com
but no server allow the clients to execute command

is there another way ?

i use curl like that

Code: Select all

curl_setopt ($ch, CURLOPT_HEADER, 1);
to show the header

but can I show the header

Separate than the site ?

Re: server type/OS in php ?

Posted: Fri Oct 10, 2008 9:27 am
by onion2k

Re: server type/OS in php ?

Posted: Fri Oct 10, 2008 10:32 am
by qwe010
thanks but i need it in curl

and not just the header

also the OS type

Re: server type/OS in php ?

Posted: Fri Oct 10, 2008 10:44 am
by alex.barylski
If your not getting the server details it's probably because the server is configured to not return those details.