need website to test online PHP script- beginner-

Discussion in 'PHP' started by kyloteh, Nov 22, 2007.

  1. #1
    I started to learn PHP. But I'm not always at home at my PC (with server installed) and I want to continue my study in other places where I have only PC with internet conexion. But to run PHP script I need server. So , does somebody know a website where I can test the PHP scripts whithout installing server pack ?
    It's just like a preview of PHP script.
     
    kyloteh, Nov 22, 2007 IP
  2. chandubhai

    chandubhai Banned

    Messages:
    556
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why dont you check some free host
     
    chandubhai, Nov 22, 2007 IP
  3. kyloteh

    kyloteh Active Member

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #3
    I didn't make my self clear. So, I saw somwhere a site where you can put the PHP cod in a window and then push a buton RUN and then in other window will appear a preview of the code, of course it runs on the site's server. I dosen't need any PHP editor .
     
    kyloteh, Nov 22, 2007 IP
  4. kreoton

    kreoton Peon

    Messages:
    229
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    no there is no tool like that, best way to test your scripts while you are not at home is to signup for free php/mysql hosting, just google for them
     
    kreoton, Nov 22, 2007 IP
  5. chandubhai

    chandubhai Banned

    Messages:
    556
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #5
    What are you trying to achieve
     
    chandubhai, Nov 22, 2007 IP
  6. foreststone

    foreststone Peon

    Messages:
    1,355
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It is difficult to find one free host for php hosting with mysql, if you know one, pm me
     
    foreststone, Nov 22, 2007 IP
  7. kreoton

    kreoton Peon

    Messages:
    229
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i don't use any free hosts at this moment but i heard aboud http://freehostia.com/

    And one more tip for topic author:
    you can use portable web server on your usb key :)
     
    kreoton, Nov 22, 2007 IP
  8. chandubhai

    chandubhai Banned

    Messages:
    556
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #8
    google around for "free php host with mysql" or something
     
    chandubhai, Nov 22, 2007 IP
  9. SEOWOES

    SEOWOES Peon

    Messages:
    60
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    The fact that you require a mysql DB suggests you are not going to find any site that will allow you to run your 'scripts' remotely - how on earth would the database definitions/connection and your script interact, to start with.

    As others have suggested, looks for a free host with mysql.
     
    SEOWOES, Nov 22, 2007 IP
  10. yh1988

    yh1988 Well-Known Member

    Messages:
    651
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    1
    #10
    there is many free hosting web can be found..
    ask the teacher ---> www.google.com
     
    yh1988, Nov 22, 2007 IP
  11. bobb1589

    bobb1589 Peon

    Messages:
    289
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #11
    no... guys you can do what he is saying... watch... ill write a script that does it real quick
     
    bobb1589, Nov 22, 2007 IP
  12. bobb1589

    bobb1589 Peon

    Messages:
    289
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #12
    <?php
    
    if(!isset($_POST['testcode'])){
    	echo "<form method=\"post\"><textarea name=\"testcode\"></textarea><br>";
    	echo "<input type=\"submit\"></form>";
    }else{
     	$script = htmlentities(stripslashes(nl2br($_POST['testcode'])));
     	echo "<h1>Script:</h1><br>".html_entity_decode($script)."";
     	echo "<h1>Your script has output:</h1>";
     	echo "<div style=\"background:#dcdcdc;\">";
    	$content = stripslashes($_POST['testcode']);
    	eval($content);
    	echo "</div>";
    }
    
    ?>
    PHP:
    there are limitations to this but it will let you "test" your script
     
    bobb1589, Nov 22, 2007 IP
  13. c4cyber

    c4cyber Well-Known Member

    Messages:
    1,040
    Likes Received:
    27
    Best Answers:
    1
    Trophy Points:
    150
    #13
    You want to learn php, right,
    1) have php, apache, mysql at your pc
    2) try some free hosting server
    3) if some of your friend have the server/website, ask him to give you some space.
     
    c4cyber, Nov 22, 2007 IP