Thread: php?id=
View Single Post
  #15  
Old 06-20-2005, 02:14 AM
NaughtyPerry is offline NaughtyPerry
Banned

Join Date: Sep 2004
Posts: 1,665

panther, sorry to bother you... i tried that... and it doesnt work??

i put this in main index bit and i cant get it to work at all...


If(!eregi("^[-?_?a-z0-9]+$",$id)) { // Will only allow alpha numeric chars with - or _'s in the name.
exit("Bad include file");
} Elseif(file_exists("/path/$id.php")) {
include("/path/$id.php");
} Else {
Exit("Bad include file");
}


www.erazor-studios.net/a51/

any ideas??
Reply With Quote