say I ave a page array, i think thats what its called,
how would i change this so it would goto a folder instead.. ex below..Code:<?php $pages = Array( '$username' => 'users/$usernameindex.html', ); if (isset($_GET['page']) && array_key_exists($_GET['page'],$pages)) { include($pages[$_GET['page']]); } else { include('../../index.php'); } ?>
code above---
mydomain.com/index.php?page=blah
change to this-----
mydomain.com/$username
----which will goto this url...---
mydomain.com/users/$username/index.html
but I dont want to use rewrite since i cant, anyway to do that...



(:
Reply With Quote
Bookmarks