Home « Server software «
Documentation: tools/fat_index.php
tools/fat_index.php - Compute a fat index for some web page
Based on a given URL, or on pasted HTML text, this script extract characters that have a good chance to be displayed to the surfer.Then it computes the fat index as the difference between submitted and computed sizes:
Fat index = 10 * log( raw bytes / useful bytes )
The number of referenced objects is also estimated as follows:
- references coming from src=... directives
- references coming from href=... directives
This script is a practical example of using YACS as a development platform.
Browse it to understand:
- how to benefit from YACS rendering engines (skin and template)
- how to use YACS libraries (to fetch some URL content)
- how to fit into YACS security model
- and, finally, how to create instructive phpDoc comments like this one
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com