gamemaker Posted April 7, 2007 Share Posted April 7, 2007 If you go to some site like http://glaielgames.com/games.php And when you click to play a game it pops up with a link like http://glaielgames.com/play.php?id=5 How would I do this on my site? Thanks Link to comment https://forums.phpfreaks.com/topic/46062-pagephpid3-help/ Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 Read this: http://no.php.net/manual/en/function.include.php Link to comment https://forums.phpfreaks.com/topic/46062-pagephpid3-help/#findComment-223802 Share on other sites More sharing options...
jscix Posted April 7, 2007 Share Posted April 7, 2007 This works if you use it as, http://www.example.com?id=filename (solong as the file is .php) <?php $srcontent = "".stripslashes($_GET['id']).".php"; if(!file_exists($srcontent)){ die("File does not exist"); } else { include($srcontent); } ?> Link to comment https://forums.phpfreaks.com/topic/46062-pagephpid3-help/#findComment-223806 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.