PHP Classes

File: examples/example01.php

Recommend this page to a friend!
  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: 21 years ago
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";
    }

?>