dinoslikeroar Posted October 4, 2016 Share Posted October 4, 2016 I need to test the following code, but don't want to host it on the server. How can I go about doing so and determine if the code is working or not? I need for the entry instructions to display outside of the input box. tia. $attr_input = "<input type='text' id='attribute_$tracker_alert_attribute_id' name='attribute_$tracker_alert_attribute_id' ". "value='$value' $trigger_on_change_html> $entry_instructions"; } else { $attr_input = "<input type='text' name='attribute_$tracker_alert_attribute_id' value='$value' size='10'> $entry_instructions"; } $form_content .= "\n<span><td>$attr_label</td><td>$attr_input $entry_instructions</td></span>\n"; $attribute_table .= "<tr><td>$attr_label</td><td></td><td>$attr_input</td></tr>"; $form_content .= "\n<tr><td>$attr_label</td><td>$attr_input</td></tr>\n"; Quote Link to comment https://forums.phpfreaks.com/topic/302277-how-to-test-code-without-hosting/ Share on other sites More sharing options...
mac_gyver Posted October 4, 2016 Share Posted October 4, 2016 First of all, your question is about php code, don't know why you posted this in the HTML forum section. You can install all-in-one xAMP (x = W, M, L for Windows, Mac, Linux, AMP = Apache, Mysql/MariaDB, Php) development packages on any current PC and operating system. see this link - https://www.apachefriends.org/index.html Quote Link to comment https://forums.phpfreaks.com/topic/302277-how-to-test-code-without-hosting/#findComment-1538018 Share on other sites More sharing options...
cyberRobot Posted October 4, 2016 Share Posted October 4, 2016 Topic has been moved to PHP Help. As for your question, you could try an online solution like the following: http://phptester.net/ Note that I haven't used PHPTester. I just ran a Google search for "test PHP code" and this was the first result. Quote Link to comment https://forums.phpfreaks.com/topic/302277-how-to-test-code-without-hosting/#findComment-1538019 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.