How to check if my serer run PHP or not?

Discussion in 'PHP' started by JJnacy, Jun 11, 2009.

  1. #1
    Hi, I am new to php.

    I often run ASP.

    Has any script can check my server run php or not.

    ASP form or PHP form script all will be find.


    Thanks,
     
    JJnacy, Jun 11, 2009 IP
  2. emed

    emed Peon

    Messages:
    70
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    make a new file called test.php and put this in it:
    <?php
    phpinfo();
    ?>
    PHP:
    upload it to the server and open that file on your browser (http://www.example.com/test.php)
    if you just see a blank page, your server dont support php scripts
     
    emed, Jun 11, 2009 IP
    JJnacy likes this.
  3. webhed21

    webhed21 Member

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #3
    ha, i was gonna tell him to do exactly that :)
     
    webhed21, Jun 11, 2009 IP
    JJnacy likes this.
  4. HorseGalleria

    HorseGalleria Peon

    Messages:
    91
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can look at your services or server config file. You can create a file called index.php containing <?PHP phpinfo(); ?> Or you can try this url:

    http://your.server.name/server-status?auto

    If the url method give a 404 error, look at the bottom of the text to see what the server is running.
     
    HorseGalleria, Jun 11, 2009 IP