'news.txt',
'codestuffs' => cstuffs.txt',
'tits' => 'porn.txt',
);
$page = $_REQUEST['PAGE'];
include(((!isset($pages[$page])) ? $pages[$page] : "error.txt"));
?>
=)
Daniel Souza
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
default : include "error.txt";
break;
case "screenshots" : include "news.txt";
break;
[/snip]
And always put default case last
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
INDEX.PHP
When i type say www.myrentedwebsite.com/index.php?page=main it will
display the page main.txt
When i try this on my localhost it displays the error.txt file instead.
It doesn't recognize the index.php?>?PAGE=MAIN i think !.
[/snip]
Try this and report back
--
PHP Genera
3 matches
Mail list logo