server type/OS in php ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
qwe010
Forum Newbie
Posts: 2
Joined: Fri Oct 10, 2008 8:49 am

server type/OS in php ?

Post 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 ?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: server type/OS in php ?

Post by onion2k »

qwe010
Forum Newbie
Posts: 2
Joined: Fri Oct 10, 2008 8:49 am

Re: server type/OS in php ?

Post by qwe010 »

thanks but i need it in curl

and not just the header

also the OS type
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: server type/OS in php ?

Post by alex.barylski »

If your not getting the server details it's probably because the server is configured to not return those details.
Post Reply