Jump to content

Recommended Posts

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";
 
Link to comment
https://forums.phpfreaks.com/topic/302277-how-to-test-code-without-hosting/
Share on other sites

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

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.