The Chess Variant Pages
Custom Search

[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

This item is a miscellaneous item
It belongs to categories: Orthodox chess, 
It was last modified on: 2015-12-11
 Author: Fergus  Duniho. Home page of The Chess Variant Pages. Missing description[All Comments] [Add Comment or Rating]
Fergus Duniho wrote on 2020-06-22 UTC

To make things simple for you, I have written a PHP script at /index/new.php. This can take a directory name in the query string with dir= or a file name with file= or both as input. When given just a directory name, it will return a JSON encoded array of the files in the directory that have been modified recently enough to bypass caching for them. Since the directory will already be known by the calling script, it returns the file names without the directories added. When given a file name as input, it will return 1 if that file has been modified recently enough to warrant bypassing the cache, and it will return 0 if the file is old enough that it will be the same as any cached version of the same file. If a directory name is given with a file name, it will use the directory name to put together the full name of the file if needed. If it doesn't find the named directory or file, it will return the value 404.