alright i gotten help from this site before and im having trouble with that code........
see i have a folder called cutenews and i weill use that to display my news
<?php
// if the page is set in q-string
if(isset($_GET['page'])){
$page = trim($_GET['page']);
}
// else page is not set
else {
$page = 'cutenews/show_news.php';
}
// APPROVED of pages for inclusion
$pages = array('main', 'cdkeys', 'babes', 'bd', 'humor', 'links', 'linkme',
'contact', 'about', 'tag', 's1', 's2', 's3', 's4', 'smilies', 'tuts', 'register'); // etc...
// if acceptable request, page in array
if(in_array($page,$pages)) {
$file = $page . '.php';
include($file);
}
else {
echo 'Page not found. Return to <a href="index.php">index</a>';
}
?>
now what i do this i got the echo page not found........
this is url for cutenews http://www.hostultra.com/~Unify/cutenews/
now i tried changing the $page = 'cutenews/show_news.php'; into
$page_path = 'cutenews/show_news.php';
but still no help any ideas?