Location: PHPKode > projects > PHP Download File script > index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" media="all" href="style.css" />
<title>Chip Download Demo</title>
</head>

<body>

<div id="wrap">
  <div id="wrapdata">
    
    
    <div id="header">
      <div id="headerdata">      
        
        <div class="chipboxw1 chipstyle1">
          <div class="chipboxw1data">          
            <h2 class="margin0">Chip Download Script</h2>
          </div>
        </div>
        
            
      </div>
    </div>
    
    <div id="content">
      <div id="contentdata">
        
        <div class="chipboxw1 chipstyle1">
          <div class="chipboxw1data">          
              <h3 class="margin0">Demos - Direct File Example</h3>
              <ul>
                <li><a href="download.php?f=nature.jpg">Download Picture File - nature.jpg</a></li>
                <li><a href="download.php?f=nature.pdf">Download PDF File - nature.pdf</a></li>
                <li><a href="download.php?f=nature.doc">Download DOC File - nature.doc</a></li>
                <li><a href="download.php?f=nature.txt">Download Text File - nature.txt</a></li>
                <li><a href="download.php?f=nature.zip">Download Zip File - nature.zip</a></li>
                <li><a href="download.php?f=nature.7z">Download 7z File - nature.7z</a></li>
              </ul>
              <h3 class="margin0">Demos - File within Directory Example</h3>
              <ul>
                <li><a href="download.php?f=dir/nature.jpg">Download Picture File - dir/nature.jpg</a></li>
                <li><a href="download.php?f=dir/dir2/nature.txt">Download Text File - dir/dir2/nature.txt</a></li>
              </ul>
          </div>
        </div>
        
      </div>
    </div>
    
     <div id="footer">
      <div id="footerdata">
        
        <div class="chipboxw1 chipstyle1">
          <div class="chipboxw1data">          
            &copy; <a href="http://www.tutorialchip.com/">TutorialChip</a>
          </div>
        </div>
        
      </div>
    </div>
    
  </div>
</div>

</body>
</html>
Return current item: PHP Download File script