|
getWebPrefs |
A server based equivalent to the local setpref/getpref |
This thingee is meant as an server based equivalent to the local setpref/getpref commands available in shockWaves netLingo While all the other examples of storing stuff on the server I keep are line - based ( there is just 1 file with a new line of data for each entry) this one is file - based: there is a folder on the server and each item sent to be stored lives in a file of its own. Prefname makes the filename, prefValue the files content, just like in setPref(prefName,prefValue). SetWebPref sends it up to the cgi at the server. and just like getPref(prefName) you can retrieve a stored file content if you type a filename in the getPref field. It is not case sensitive. You can download the source, perl & dir, here: webprefs.zip
|