Closed Thread
Results 1 to 6 of 6

Thread: Php

  1. #1
    markm18637 is offline x10Hosting Member markm18637 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    4

    Php

    Hello,

    Not sure how to enable PHP on my system. I get the errors:

    Warning: phpinfo() has been disabled for security reasons in /home/romniel/public_html/cgi/test.php on line 2

    Thanks,
    -Mark

  2. #2
    calistoy's Avatar
    calistoy is offline Free Support Volunteer calistoy is just really nice
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,598

    Re: Php

    It's as the message says: Warning: phpinfo() has been disabled for security reasons in /home/romniel/public_html/cgi/test.php on line 2

    phpinfo is disable on all free hosting account due to security reasons. What did you need to know about php from that?

  3. #3
    markm18637 is offline x10Hosting Member markm18637 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    4

    Re: Php

    I was trying to figure out if PHP was supported. I tried to print/echo out

    <?php
    Print "hello";
    Echo "world";
    ?>

    but that didn't work, and I still ended up getting the error message.

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Php

    PHP is enabled.

    What error message to you get with that last snippet?
    Nothing is always absolutely so.

  5. #5
    markm18637 is offline x10Hosting Member markm18637 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    4

    Re: Php

    got it working! I placed the .php file into a cgi-bin directory (which didn't work) but I placed it out side the directory and it worked.

  6. #6
    calistoy's Avatar
    calistoy is offline Free Support Volunteer calistoy is just really nice
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,598

    Re: Php

    I'm glad it's working for you now. Just to let you know, now, that the cgi-bin is disabled on all free hosting accounts due to security reasons. I'm sorry that I didn't catch that before now after seeing the url you provided in the error message you originally posted about.

Closed Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers