I'm trying to sort out my menu file system out and im having massive issues,
<?php
if ($_SERVER['HTTP_HOST']=='localhost') {
$path = '/local-html/lr';
ini_set('display_errors', true);
error_reporting(-1); // show all errors
} else {
$path = '/var/www/vhosts/numyspace.co.uk/web_users/home/~unn_w10011815/public_html/lr';
ini_set('display_errors', false);
error_reporting(-1); // show no errors
}
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="calendar.php">Calendar</a></li>
<li><a href="messaging.php">Program and Module Messaging</a></li>
<li><a href="questionnaire.php">Questionnaire</a></li>
<li><a href="auction.php">Auction</a></li>
</ul>
</nav>
basically what this should do is set a starting path for all files to start from however it either isnt doing that or something is wrong (my lecturer wrote this code and he said it should work but ive spent ages on it and it wont)
when i use the menu normally I can use it as expected, however when i go into a file that is held in a folder eg. admin folder to use other functions it doesnt work i get this :
Error:
Not Found
The requested URL /~unn_w10011815/lr/admin/index.php was not found on this server.
what it should call is /~unn_w10011815/lr/index.php and it doesnt
any help
regards
Bestford

New Topic/Question
Reply


MultiQuote




|