php version on server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eiht_98
    Confirmed User
    • Jan 2001
    • 6103

    #1

    php version on server

    How do I test which php version is running on my server?
  • AcidMax
    Confirmed User
    • May 2002
    • 1827

    #2
    Create a php page and put this code in it.

    <?php
    echo phpinfo();
    ?>

    Then view the page via a web browser.
    Latest MMA news. http://www.mmawrapup.com

    Comment

    • Gasper

      #3
      Or if you have cpanel installed, check the bottom left corner on the main page.

      Comment

      • eiht_98
        Confirmed User
        • Jan 2001
        • 6103

        #4
        Originally posted by AcidMax
        Create a php page and put this code in it.

        <?php
        echo phpinfo();
        ?>

        Then view the page via a web browser.
        if I do what you said I get the same text on the page

        Comment

        • justsexxx
          Too lazy to set a custom title
          • Aug 2001
          • 13723

          #5
          Hi,

          goto http://www.justsexxx.net/test.txt and copy that txt, save it as test.php and upload it to your server

          then request yourdomain.com/test.php and voila...

          Make sure it's .php and not .php.txt

          Andre
          Questions?

          ICQ: 125184542

          Comment

          • eiht_98
            Confirmed User
            • Jan 2001
            • 6103

            #6
            Originally posted by justsexxx
            Hi,

            goto http://www.justsexxx.net/test.txt and copy that txt, save it as test.php and upload it to your server

            then request yourdomain.com/test.php and voila...

            Make sure it's .php and not .php.txt

            Andre
            if I get a blank page that means that there is no php?

            Comment

            • Voodoo
              ♥ ♦ ♣ ♠
              • Sep 2002
              • 10600

              #7
              Bzzt. Wrong.

              Create a page.
              Put the following:
              [?php
              phpinfo();
              php?]

              Replace the brackets.
              No "echo". It's just a call to a function phpinfo().

              Name the file info.php or whatever.

              "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

              Comment

              • justsexxx
                Too lazy to set a custom title
                • Aug 2001
                • 13723

                #8
                Originally posted by eiht_98

                if I get a blank page that means that there is no php?
                What is your url? BTW easiest way is to ask your host And when there is NO php you get is as txt(at least that is what I thought)

                Andre
                Questions?

                ICQ: 125184542

                Comment

                • AcidMax
                  Confirmed User
                  • May 2002
                  • 1827

                  #9
                  Originally posted by Voodoo
                  Bzzt. Wrong.

                  Create a page.
                  Put the following:
                  [?php
                  phpinfo();
                  php?]

                  Replace the brackets.
                  No "echo". It's just a call to a function phpinfo().

                  Name the file info.php or whatever.
                  All the ways given will work, even mine, the board parsed the first tag

                  It should be
                  PHP Code:
                  <?php
                  echo phpinfo(); 
                  ?>
                  You can also leave out the echo it works either way.
                  Latest MMA news. http://www.mmawrapup.com

                  Comment

                  • justsexxx
                    Too lazy to set a custom title
                    • Aug 2001
                    • 13723

                    #10
                    Originally posted by Voodoo
                    Bzzt. Wrong.

                    Create a page.
                    Put the following:
                    [?php
                    phpinfo();
                    php?]

                    Replace the brackets.
                    No "echo". It's just a call to a function phpinfo().

                    Name the file info.php or whatever.
                    always worked for me
                    Questions?

                    ICQ: 125184542

                    Comment

                    Working...