Click here to Skip to main content
15,920,801 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i am new to php
i want to know is there is any site to test my php code on line
thank you
vara prasad
Posted
Updated 22-Apr-11 2:02am
v2

If you google "free php hosting", you will find a lot of them... 145,000,000 hits, in fact.

http://www.google.co.uk/search?aq=f&sourceid=chrome&ie=UTF-8&q=free+php+hosting[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Apr-11 22:30pm    
It's good to have so many... My 5.
I offer two alternative approaches, one of them even provides a debugger; please see.
--SA
if you just want to test your php code, you can do it offline, there are a lot of free web server application package that you can install on your computer, such as xampp (apachefriends.org), you can run your code from localhost the same way as if you put it online,

but if you want to test it on a remote server, a bit of google will solve your problem, like OriginalGriff said,
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Apr-11 22:31pm    
This is +1 other idea, my 5.
I have 2 more; please see my answer.
--SA
Alternative approach is testing PHP on your own computer. Install Apache (http://www.apache.org/[^]), PHP and PHP module for Apache. This server is lean enough, secure and most used.

There is another approach which is good if you can use Visual Studio. You can use PHP for .NET called Phalanger, see http://en.wikipedia.org/wiki/Phalanger_(compiler)[^]. A plug-in for Visual Studio is also available. Using these tools, you can even use stepwise debugger!

You should remember though that Phalanger is very different from "standard" PHP. If your goal is using "standard" PHP but you want debugging with Phalanger under Visual Studio, develop and debug separate PHP modules and stick to a "standard" sub-set of feature, for example, do not use .NET binding.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900