Hey guys,
I have programmed my site to have a single design but have the content change. But i've come to a problem. Here is the PHP programming I have for index.php
<?
if($p) {
if(is_file("content/html$p")) {
include("content/html$p");
}
else include("content/html/not_found.html");
}
else {
include("content/html/home.php");
}
?>
This causes my template to work fine when just calling up normal html/php files. Example:
http://blazehits.com/freeware/
http://blazehits.com/freeware/?p=/archive.php
However, if I wanted to do a query like this:
http://www.blazehits.com/freeware/?p=/details.php?&sid=8
It gives me an error of:
Warning: Failed opening 'content/html/not_found.html' for inclusion (include_path='./:/usr/local/lib/php') in /home/blazehit/blazehits-www/freeware/index.php on line 25
But when I do it without the index.php coding it works fine:
http://www.blazehits.com/freeware/content/html/details.php?&sid=8
Please help !! Thanks a bunch!