This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

php get file

By: a guest on Aug 23rd, 2012  |  syntax: PHP  |  size: 1.13 KB  |  views: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Prodigy Doo Design</title>
  6. <link href="template/style.css" rel="stylesheet" type="text/css" />
  7. </head>
  8. <?php
  9. if(isset($_REQUEST['file'])){
  10.         $filename=$_REQUEST['file'];
  11. }
  12. else{
  13.         $filename = "home";
  14. }
  15. ?>
  16. <body>
  17.  
  18.  
  19. <?php include('template/header.php'); ?>
  20. <div class="pad50px900wide"><!--Padding after headder--></div>
  21. <?php // include('template/nav.php'); ?>
  22.  
  23.  
  24. <!--*****************************
  25. ********* BODY CONTENT***********
  26. ******************************-->
  27. <div class="bodyContent">
  28. <?php include ($filename.".php"); ?>
  29. <?php include ($filename.".php"); ?>
  30. </div>
  31. <div class="bodyContent">
  32. <a href="index.php?file=about">About</a>
  33. <a href="index.php?file=home">Home</a>
  34. </div>
  35. <!--*****************************
  36. ******END OF BODY CONTENT********
  37. ******************************-->
  38.  
  39. <?php include('template/footer.php'); ?>
  40.  
  41. </body>
  42. </html>
clone this paste RAW Paste Data