View Single Post
Old 07-20-2008, 04:04 PM  
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,231
Quote:
Originally Posted by Voodoo View Post
Or here's another method...
PHP Code:
<?php
$ID
=$_GET['ID'];
include (
'header.php');
include (
'$ID.php');
include (
'footer.php');
?>
Fail.
First off, you are using single quotes which means it would have to be include($ID.'.php'); not the way you have it, secondly what if i call it with file.php?id=/some/other/sites/on/this/server/phpfile ?
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote