show PHP errors

htaccess,PHP          Trackback

Did you ever work on some php script, and all you get when you point your browser to that script was blank page? Just emptiness. You would expect error message at least. Probably your server is configured not to display and log errors.

Try to add these two lines to your .htaccess file:

php_flag display_errors on
php_value error_reporting 7

That can solve your problem


PHP code inside HTML page

htaccess,PHP          Trackback

Did you ever try to put some PHP code inside your HTML page? It might work, it might not. It depends on your webserver settings. Usually you dont have access to this settings, but you can use .htaccess file to fix this problem. All you have to do is just to put this line into your .htaccess file:

AddType application/x-httpd-php .html

With this line your web server will interpret all your html files like they are php.