Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Sounds like there is something wrong with your configuration, here are a few things you can check:</p> <ol> <li><p>Make sure that PHP is installed and running correctly. This may sound silly, but you never know. An easy way to check is to run <code>php -v</code> from a command line and see if returns version information or any errors.</p></li> <li><p>Make sure that the PHP module is listed <strong>and uncommented</strong> inside of your Apache's httpd.conf This should be something like <code>LoadModule php5_module "c:/php/php5apache2_2.dll"</code> in the file. Search for <code>LoadModule php</code>, and make sure that there is no comment (<code>;</code>) in front of it.</p></li> <li><p>Make sure that Apache's httpd.conf file has the PHP MIME type in it. This should be something like <code>AddType application/x-httpd-php .php</code>. This tells Apache to run <code>.php</code> files as PHP. Search for AddType, and then make sure there is an entry for PHP, <strong>and that it is uncommented</strong>.</p></li> <li><p>Make sure your file has the <code>.php</code> extension on it, or whichever extension specified in the MIME definition in point #3, otherwise it will not be executed as PHP.</p></li> <li><p>Make sure you are not using <a href="http://php.net/manual/en/language.basic-syntax.phptags.php" rel="noreferrer">short tags</a> in the PHP file (<code>&lt;?</code>), these are <em>not enabled on all servers</em> by default and their use is discouraged. Use <code>&lt;?php</code> instead (or <a href="http://php.net/manual/en/ini.core.php#ini.short-open-tag" rel="noreferrer">enable short tags in your php.ini</a> with <code>short_open_tag=On</code> if you have code that relies on them). </p></li> <li><p>Make sure you are accessing your file over your webserver using an URL like <code>http://localhost/file.php</code> not via local file access <code>file://localhost/www/file.php</code></p></li> </ol> <p>And lastly check the <a href="http://php.net/install" rel="noreferrer">PHP manual for further setup tips</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload