But it doesn't do anything, and instead, shows the PHP include in the source code. Do you have any ideas as to why?
To give you a better understanding of my site, index.php looks like this:
Code: Select all
<?php
$go = "index" ;
if ($_GET["go"])
$go = $_GET["go"] ;
$body = "html/{$go}.html" ;
$head = "html/_{$go}.html" ;
if (!file_exists($body)) {
$body = "html/index.html" ;
}
if (!file_exists($head)) {
$head = "html/_index.html" ;
}
$CONTENT = implode('', file($body)) ;
$HEAD = implode('', file($head)) ;
include "layout.html" ;
?>As you noticed, there are both .html and .php files, but the thing is - I don't think that should be a problem, as the master file is a .php - so code should execute. To be safe, I even modified htaccess:
Code: Select all
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .htmlAlso, any other advice is appreciated!
Thank you for your time.
P.S. When you go to: http://www.karmera.de/html/shop.html it gives the following errors:
Warning: include(./contact-app/common.php) [function.include]: failed to open stream: No such file or directory in /www/htdocs/w0086c88/karmera/contact-script.php on line 8
Warning: include(./contact-app/common.php) [function.include]: failed to open stream: No such file or directory in /www/htdocs/w0086c88/karmera/contact-script.php on line 8
Warning: include() [function.include]: Failed opening './contact-app/common.php' for inclusion (include_path='.:/usr/share/php:..') in /www/htdocs/w0086c88/karmera/contact-script.php on line 8