chris77 — 2011-05-12T20:59:05-04:00 — #1
Where can I test PHP code online. The one site I found gives error messages I can't understand.
ralphm — 2011-05-12T21:05:02-04:00 — #2
The ideal would be to get your own hosting, which can cost as little as a few dollars a month. Or you could set up a server environment on your own computer, using something like WAMP (PC) or MAMP (Mac), both of which are free.
chris77 — 2011-05-12T22:48:00-04:00 — #3
I forgot to think of "validator". I found a php validator.
starlion — 2011-05-13T12:29:28-04:00 — #4
Which is an okay tester for syntax of an individual file. *AMPing it is usually better for testing purposes (and faster than having to FTP to a remote site constantly ), because you have direct access to php.ini and can turn error reporting on by default.
sogo7 — 2011-05-13T12:30:46-04:00 — #5
Why not get yourself some free webspace with the likes of X10Hosting or 000Webhost, both have good support forums to answer any technical problems you may encounter.
tangoforce — 2011-05-13T13:04:17-04:00 — #6
Not so sure about that. You still have to create a file, name it, save it, type in the address manually in the browser etc. Most programmers are inherently lazy so it's best to use a site like:
Free PHP test - free php code testing online. -
Test run php code online, right here - WriteCodeOnline.com/PHP
Just type and go!
cups — 2011-05-13T13:30:55-04:00 — #7
Get the best of both worlds, PHP Interactive - an interactive shell for PHP an interactive shell you install on your own machine.
Used it for years, where I do most much of working out when replying here. Sometimes you don't want to pollute your IDE with snippets of code.
starlion — 2011-05-13T14:34:09-04:00 — #8
Again; Run PHP code.
//300 lines of code
Now find me the errors in my code and make sure it comes out with the correct values.
"You still have to create a file, name it, save it, type in the address manually in the browser"
And in your example you still have to create a file type in the address manually in your browser...
and now you have to make it flat, not connect to any database that isnt open to the world connecting to it, have to comply to their server's modules, etc....
Far more work than just coding the thing and actually running it, imo. But if thats what works for you, by all means go for it.
anthonysterling — 2011-05-13T16:08:59-04:00 — #9
I seen an awesome demo of [this (BeachPHP) at [URL="http://conference.phpnw.org.uk/phpnw10/"]PHPNW10](https://github.com/Bittarman/BeachPHP), brilliant.
tangoforce — 2011-05-13T16:18:35-04:00 — #10
The op asked where they could test php code. Not an entire php system
When I want to test a bit of code that is reliant on other files, variables etc, i just manually set them up instead and then run the trial code to see how it works with the variables. It's not hard is it.
lordlinus — 2013-07-02T02:12:29-04:00 — #11
Trycodeonline.com is the place which you are searching for, here you can test your code online or you can save the code for future reference or to share with your friends
system — 2013-07-05T08:13:05-04:00 — #12
writecodeonline.com/php is the site to test php code.
system — 2014-10-08T00:30:59-04:00 — #13
This topic is now closed. New replies are no longer allowed.