hi all...
how can i hide the scripts name in the url bar?
i'm not using frames.
thanks
hide the scripts name from the url bar
Moderator: General Moderators
-
mcog_esteban
- Forum Contributor
- Posts: 127
- Joined: Tue Dec 30, 2003 3:28 pm
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
there's mod_rewrite, along with interfacing scripts that take a control from the url to tell it which file to include. Note: do not use the filename/path as a control.
use an htaccess file, or equivalent, to lock out external access to the "data" folder, if you use one, in case someone tries to guesses the path.. 
Code: Select all
<?php
$controls = array('jane'=>'data/jane.php', 'foo'=>'bar.php',);
if( !isset( $_GETї'control'] ) || !isset( $controlsїstrtolower($_GETї'control'])] )
$control = 'jane'; // default action
else
$control = $_GETї'control'];
$control = $controlsї$control];
include($control);-
mcog_esteban
- Forum Contributor
- Posts: 127
- Joined: Tue Dec 30, 2003 3:28 pm