HRDIODB
[ class tree: HRDIODB ] [ index: HRDIODB ] [ all elements ]

Procedural File: archive.php

Source Location: /archive.php



Page Details:

Command line file archiving script.

This is a command line script which reads information from the HRDI_Downloads table and compresses the necessary files into an archive. The archive is then moved to a web accessible directory, where the polling script notices it and makes it available for download. The PclZip library is used for the Zip file creation. The library page is located at: http://www.phpconcept.net/pclzip/




Tags:

filesource:  Source Code for this file


Includes:

require_once("hrdi_db_class.php") [line 34]
HRDI database class

require_once("download_class.php") [line 36]
Download class

require_once("conf.php") [line 32]
Configuration file

require_once("pclzip/pclzip.lib.php") [line 38]
PclZip library, http://www.phpconcept.net/pclzip/







write_error_file [line 105]

void write_error_file( string $error_file, string $message)

Writes an error to a file.

This function does what http://www.php.net/file_put_contents does in PHP 5. It takes a file name, opens it in append mode, writes the message and closes the file.




Parameters

string   $error_file   The error file name
string   $message   The error message to write
[ Top ]



Documentation generated on Tue, 23 Jan 2007 22:57:42 -0500 by phpDocumentor 1.3.0RC6