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/encoding" has permission
drwxrwsrwx 2 apache ipgdemos 20480 2008-08-17 18:06 encoding
Inside the directory "/var/www/demos/files/encoding" there are
two files for a seesion.
- param contains the parameter of the ensembles and suffixed by session id.
- gif file It is the gif image of the triangulated matrix and its name is
based on the session id. All these files have 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.