Jump to content

page.php?id=3 Help


gamemaker

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.