PDA

View Full Version : server type in php ?


qwe010
8th October 2008, 04:46
hello

how can i know the server type/OS

for remote server in php ?

i found that

curl -I http://www.google.com

but no server allow the clients to execute command

is there another way ?

i see

http://www.php.net/get_headers

But i use Curl

to check the site

can I show the header

Separate than the site ?

falko
8th October 2008, 13:54
To use curl from PHP, you can use the exec(), passthru(), or system() function.

qwe010
8th October 2008, 19:22
no falko no server allow the clients to execute command

i use curl like that

curl_setopt ($ch, CURLOPT_HEADER, 1);

to show the header

but can I show the header

Separate than the site ?

nicephotog
26th November 2008, 08:55
...for remote server in php ?...

In CGI there is a system known as penetration testing and fingerprinting.
http://nmap.org/