Results 1 to 7 of 7

Thread: How can I tell if my Server will run PHP?

  1. #1

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    How can I tell if my Server will run PHP?

    Well the place I'm hosted at is abit povo.. and I was wondering if theres any simple piece of code that I could use to see if it'll work..
    Don't Rate my posts.

  2. #2
    Member
    Join Date
    Jul 2002
    Location
    Singapore
    Posts
    32
    make a file called test.php and put the following in it.

    <?php

    phpinfo();

    ?>

    if u see lots of details, thats good, otherwise, the server doesn't run PHP
    C you, C me

  3. #3

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Nope, comes up blank, with the files source being
    VB Code:
    1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    2. <HTML><HEAD>
    3. <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
    4. <BODY><PRE></PRE></BODY></HTML>
    Don't Rate my posts.

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    That probably means it's not enabled, unless it requires .php3 or .php4 extensions.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    That or the hosting company disabled the php_info() function.

    You should try an echo command like so:
    PHP Code:
    <?php
      
    echo "Hello World!"// what I geeky phrase, :p
    ?>
    (be sure to name your file with a .php extension)
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  6. #6
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    LOL, I found a bug in vBulletin
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  7. #7

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Nope

    There supposed to be using PHP 4..

    Anyways, I asked to be moved to a server were PHP is definately working, or that he get it going on mine.
    Don't Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width