Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/example01.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hayk Chamyan  >  No Direct Links!  >  examples/example01.php  >  Download  
File: examples/example01.php
Role: Example script
Content type: text/plain
Description: First (basic) example
Class: No Direct Links!
Class to control the process of downloading files
Author: By
Last change:
Date: 2003-05-19 19:02
Size: 248 bytes
 

Contents

Class file image Download
<?php

    
require_once ("../ndl.class.php");

    if ( (isset(
$_GET["file"])) && !empty($_GET["file"]) )
    {
        
$ndl = new NDL ($_GET["file"], "./data/""NDL! example"CD_DISPLAY);
        
$ndl->send();
    }
    else
    {
        echo 
"Unknown error";
    }

?>