Here's my code for the include part in my index:
Code: Select all
<?
if ($rub == NULL) {
$rub = News;
}
include("./$rub.php");
?>used my links in my menu i realized the rub was always null !
in fact, if i strip out the
Code: Select all
if ($rub == NULL) {
$rub = News;
}index.php?rub=Forum
index.php?rub=Chat
index.php?rub=News
it writes me that:
Warning: include(./.php) [function.include]: failed to open stream: No such file or directory in /var/www/index.php on line 60
Warning: include() [function.include]: Failed opening './.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/index.php on line 60
well, my rub is always NULL whatever i write in the url and i don't know why.
why does this F****G rub is always null ???
thanks for awnsering me (if someone does it)