Taco HTML Edit Help > PHP Support


Topics

What is PHP?

PHP is a scripting language generally used for web development. It is frequently embedded into HTML, so that a server can execute the PHP code before sending a web page to a user. To learn more about PHP, visit PHP.net.



Using Taco HTML Edit's PHP Features

Taco HTML Edit's PHP features require that the PHP Command Line Interface is installed on your computer. By default, Taco HTML Edit looks at the locations "/usr/bin/php" and "/usr/local/bin/php" for PHP. If you have PHP installed in another location, then you can specify its location in the "Preview" tab of the "Preferences" panel. If you do not have PHP installed on your computer and you want to use Taco HTML Edit's PHP features, then you can obtain PHP from PHP.net. Once you have installed PHP, you can take advantage of the following Taco HTML Edit PHP features:




Troubleshooting - PHP Preview Is Not Working

If Taco HTML Edit cannot detect PHP on your computer, then you will get a message saying that the file specified for PHP does not exist. There are two likely problems:
  1. You do not have PHP installed on your computer. In this case, you should obtain PHP from PHP.net.
  2. You have not specified the correct location for the PHP Command Line Interface. If you are certain that PHP is installed on your computer, then you should make sure that the correct location for PHP is specified in the "Preview" tab of the "Preferences" panel.
Finally, for Taco HTML Edit to recognize a file as a PHP file by default, it must have one of the following extensions: PHP, PHP3, PHP4, PH3, or PH4. These extensions can be changed in the "Advanced" tab of the "Preferences" panel.