PDA

View Full Version : Need to test php code



Neehosoft
11-13-2009, 11:24 PM
I don't want to install apache for 30 lines of code, and i dont want to upload just yet.
Is there a website online code thing where i can test my php?
For example, i type it and it shows me an example like W3Schools.com does for html?

Rick
11-13-2009, 11:29 PM
Like this: http://www.writecodeonline.com/php/

Neehosoft
11-13-2009, 11:30 PM
Like this: http://www.writecodeonline.com/php/

Edit:
It's giving me a error. Im pretty sure this is php code, it was given to me by Sex without any other words or discription.

<form method="get" action="http://www.google.com/search"><input type="text" name="q" size="31" maxlength="255" value="" /><input type="submit" value="Search" /></form>
and it was wrapped in php tags.
But im getting a unexpected < error

Rick
11-13-2009, 11:46 PM
Thats HTML

Neehosoft
11-13-2009, 11:49 PM
Thats HTML

Never knew html took it that far.:duh:
Thanks lol....

Wizzup?
11-13-2009, 11:50 PM
Show us the code? :)

Smartzkid
11-14-2009, 12:51 AM
XAMPP Portable (http://portableapps.com/apps/development/xampp)

Daniel
11-14-2009, 01:22 AM
http://codepad.org/

Try it ;)

Harry
11-14-2009, 03:05 AM
You can also use PHP CLI; in Ubuntu it is as: `php file.php'; no webserver required! :)

code841
11-14-2009, 05:14 AM
http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/
PHP syntax checker? Is that it?