Where Can I Test PHP Code Online

8 replies
Dear Warriorforum Members!
Where can I test PHP code online. The one site I found gives error messages I can't understand.

Thanks!

#code #online #php
  • Profile picture of the author seasoned
    Just about ANY paid site allows you to do it. You can always ask them.

    If it is a free site they are stupid and probably won't last long. There IS a risk with running PHP, and people always try to exploit.

    BTW it could help a LOT if you say what the error messages are!

    Steve
    {{ DiscussionBoard.errors[8234748].message }}
    • Profile picture of the author Brandon Tanner
      Here you go...

      Test run php code online, right here - WriteCodeOnline.com/PHP

      @ Steve - I would imagine that most sites that let you test PHP, JS, etc. online sanitize the code as soon as it's submitted, in order to prevent XSS (at least if they're smart, they do)!
      Signature

      {{ DiscussionBoard.errors[8235148].message }}
      • Profile picture of the author seasoned
        Originally Posted by Brandon Tanner View Post

        Here you go...

        Test run php code online, right here - WriteCodeOnline.com/PHP

        @ Steve - I would imagine that most sites that let you test PHP, JS, etc. online sanitize the code as soon as it's submitted, in order to prevent XSS (at least if they're smart, they do)!
        Well, the one you linked to apparently doesn't allow you to do much anyway.

        Steve
        {{ DiscussionBoard.errors[8237404].message }}
        • Profile picture of the author Brandon Tanner
          Originally Posted by seasoned View Post

          Well, the one you linked to apparently doesn't allow you to do much anyway.

          Steve
          Of course it's going to have some limitations compared to using your own server, but the OP asked for an online solution, for whatever reason (and the site I linked to is fine for testing basic stuff... I've used it several times for that). Normally though I prefer to test locally using XAMPP.
          Signature

          {{ DiscussionBoard.errors[8237789].message }}
  • Profile picture of the author ernestrategos
    Most low-cost shared hosting accounts allow you to run and therefore test PHP on their servers. If you are learning, this would allow you to test much more things than simpler services therefore you will be able to increase your knowledge much faster.
    Signature
    {{ DiscussionBoard.errors[8235848].message }}
  • Profile picture of the author seasoned
    BTW you CAN get a WAMP package, and run it on your OWN computer.

    Steve
    {{ DiscussionBoard.errors[8237409].message }}
  • Profile picture of the author YHmuWong
    I think you can also test the php code on w3schools.since it is just a preview,the error could be the same just to verify its validity
    Signature

    Number 11 is lucky in snake & ladders.

    {{ DiscussionBoard.errors[8237614].message }}
  • Profile picture of the author brutecky
    You can get a low cost hosting account with HG and a cheap domain (like a .us) so like $4 up front and like $5 a month and boom you have your own server to test / play around on.
    {{ DiscussionBoard.errors[8237847].message }}

Trending Topics