server type in php ?

Discussion in 'Programming/Scripts' started by qwe010, Oct 8, 2008.

  1. qwe010

    qwe010 New Member

    hello

    how can i know the server type/OS

    for remote server in php ?

    i found that

    Code:
    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 ?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    To use curl from PHP, you can use the exec(), passthru(), or system() function.
     
  3. qwe010

    qwe010 New Member

    no falko no server allow the clients to execute command

    i use curl like that

    to show the header

    but can I show the header

    Separate than the site ?
     

Share This Page