4D v14.3WEB GET STATISTICS |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
WEB GET STATISTICS
WEB GET STATISTICS
The WEB GET STATISTICS command lets you get information about the most consulted pages loaded in the Web server’s cache. Consequently, these statistics only concern static pages, GIF pictures, JPEG pictures <100 KB and style sheets (.css). Note: For more information about setting the 4D Web server’s cache, refer to section QR DELETE COLUMN. The command fills the pages Text array with the names of the most consulted pages. The hits Longint array receives the number of “hits” for each page. The usage parameter receives the percentage of the Web cache used by each page. Let’s assume that you want to generate a semi-dynamic page that displays the statistics of the Web cache. For this, in a static HTML page named “stats.shtm” (pages suffixed .shtm are automatically parsed by the Web server), you place the tag <!––#4DSCRIPT/STATS––> as well as references to the vPages and vUsage variables, for example: <html> <head><title>4D Web Stats</title></head> <!--#4DSCRIPT/STATS--> <body> <strong>Percentage of cache used: </strong> <!--#4DTEXT vUsage--> <hr> <strong>Pages consulted most often: </strong> <!--#4DHTML vPages--> </body> </html> In the project method STATS, you write the following code: C_TEXT($1) You can send the "stats.shtm" page using a URL link or using the WEB SEND FILE command. |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v6.5 SEE ALSO
Information about the Web Site ARTICLE USAGE
4D Language Reference ( 4D v14 R2) Inherited from : WEB CACHE STATISTICS ( 4D v12.4) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||