This is an old revision of the document!
Directory structure with permissions
The file permissions are the same as were there on lthcwww.
The directory "/var/www/demos/encoding" has permission
drwxrwSr-x 2 rathi ipgdemos 4096 2008-08-21 23:50 encoding
This is the directory structure of "/var/www/demos/ensembles"
with permissions.
-rwxrwxr-x 1 rathi ipgdemos 50141 2008-07-25 16:58 encoding -rwxrwxrwx 1 rathi ipgdemos 171 2008-08-14 22:35 encodingparameters -rwxrwxrwx 1 rathi ipgdemos 250262 2008-08-17 20:08 hmatrix.pbm -rw-rw-r-- 1 rathi ipgdemos 12226 2008-08-15 19:55 index.php -rw-rw-r-- 1 rathi ipgdemos 4893 2008-08-14 13:40 lthc_index.php
The file "lthc_index.php" has the old lthc way of giving inputs.
Important lines in index.php
Line 46 to 396: The code is about checking the validity of the polynomials.
Line 554 to 573: parameters are written if there is an input from the user.
Line 574: Execution of the command to generate the image.
Line 580: pbm to gif generated.
Line 594: gif is displayed.
Location of files related to execution and writing
The directory "/var/www/demos/files/ensembles" contains files for a
session. There are four files for a seesion and there names are suffixed
by session id's.
- param contains the parameter of the ensembles.
- graph contains the graph connections.
- tempa data for rate computation.
- tempb graph connections to generate the ps file of the graph.
All these four files have permissions: "-rw-r--r--". The ".gif" and
.ps are given names which are same as the session ids. They reside in
"/var/www/demos/files/ensembles/images" with permissions "-rw-r--r--".
Important Remark
There should be a "crone" job deleting the files in "/var/www/demos/files/ensembles".
The file names start with "graph, param, tempa, tempb". There are four files without
the session d suffix which should not be deleted. These should be there just for the sake
of reference. Similarly, the files in "/var/www/demos/files/ensembles/images" should be
deleted.