PHP Classes

File: download.php

Recommend this page to a friend!
  Classes of Emad Aldeen Hajjar   al_print_f   download.php   Download  
File: download.php
Role: Example script
Content type: text/plain
Description: test class
Class: al_print_f
Serve file for download limiting the transfer rate
Author: By
Last change: Update
Date: 19 years ago
Size: 1,320 bytes
 

Contents

Class file image Download
<?php
/*###################################################################
# +---------------------------------------------------------------+ #
# | aLeppos version 1.0.0
# +---------------------------------------------------------------+ #
# | Copyright ©2005–2006 Aleppos Network Ltd. All Rights Reserved | #
# |This file may not be redistributed in whole or significant part| #
# | http://www.aleppos.net ALEPPOS IS NOT FREE SOFTWARE | #
# +---------------------------------------------------------------+ #
###################################################################*/

@ini_set('zlib.output_compression', 'Off');
@
set_time_limit(0);

require_once(
'./class_file.php');

$al_file = new al_print_f;

$al_file->appname = 'aleppos';
$al_file->speed = 9;

$done = $al_file->print_f("filename.zip", "httpd-2.0.53-win32-x86-src.zip", array('Content-type: application/zip'));

if (
$done)
{
   
// DONE so now you can update counter...
}

/*###################################################################
# +---------------------------------------------------------------+ #
# | CVS: $RCSfile: download.php,v $ - $Revision: 1.0 $
# +---------------------------------------------------------------+ #
###################################################################*/
?>