JRoute

Does anyone know of a code to get a page in your includes directory to be displayed via the index.php file. Example.: File BBG.php exists in the includes directory. I want to view that file via {site}/index.php?view=bbg. How would I do that w/ php. Preferably someone could give me a code to use.

maybe something like this…

<?php if(isset ($_GET['view'])) { if($_GET['view'] == "bbg") { header( 'Location: http://www.yoursite.com/includes/bbg.php'' ) ; } } ?> ... etc

if includes isn’t viewable through your webserver I suggest you make a symbolic link to it from a directory that is.

Ill try to modify that but that really doesnt work to well.

Sponsor our Newsletter | Privacy Policy | Terms of Service