ok heres my index.php script... I wish when it died it would go to a file...
Is there a way to make it go like this
die (" goto link ");
I hope this makes sense....
This is the template I would like it to go to if possible.
http://domain.com/index.php/?x=error
<?php
if (isset($GET['x'])) {
$target_page=$GET['x'];
$target_page=$target_page.".html";
if (file_exists($target_page)) {
include ($target_page);
}
else {
die ("Sorry, such file doesn't exist - please select again");
}
}
else {
include('template/main.php');
}
?>
thanks