RexxWeb
Name RexxWeb
Version Version 1.0
Author Igor Pool
(see EMail Addresses)
Distrib. Freeware
Type REXX DLL
Price -
Note -
Source Internet
Name: rxweb023.*
Description from the author:
"REXXWEB.DLL provides additional functions to assist writing OS/2 REXX based
cgi scripts."
The DLL contains the following functions:
GetFormData
Retrieves URL form data from
either a GET or POST method and stores it in the rexx variable WWWFORMDATA.
GetFieldData
This
function extracts from WWWFORMDATA the data corresponding to form input
field field name. The data is then truncated to length if nesscessary and
validdated as type.
URL2Ascii
Converts
URL encoded characters in string name to their ASCII equivalent.
Ascii2HTML
Converts any ASCII chars in string name to their
HTML eqvivalent.
Validate
Returns
0 after verifying string is of type type otherwise 0 is returned
DoubleQuoted
Alters string by adding an extra quote after
each existing quote as required by most Database Systems.
EncodeString
Return a hex encoded string double the length
of the string supplied.
DecodeString
Return
a hex encoded string double the length of the string supplied.
getTextString
Returns the string matching stringname from
filename.
getAllTextStrings
Loads
all text strings found in filename into individual REXX variables
getTextStringName
Returns the string name matching stringvalue
getTextCollection
Returns
the collection of strings matching stringname from filename in a stem of
stringname.
getAllTextCollection
Returns
the collection of strings from filename in a stem of rexxvar.
setTextString
Sets the string stringname in filename to the
value of the rexx variable stringname.
setTextCollection
Write the stem variable stringname to filename.
*
addTextString
Adds
the value of the rexx variable stringname to filename
getTextFile
Returns the contents of a text file in rexxvar
after substituting place holders identified by #name# for the value of their
rexx variable equivalent.
WriteToFile
Writes
the contents of the rexx variable rexxvar to filename.
RenameFile
Renames oldfilename to newfilename.Returns 0
is successful.
DeleteFile
Deletes
filename returning 0 if successful.
ReplaceString
Scans the rexx variable rexxvar replacing each
occurance of StringOut with StringIn.
CapitaliseString
Coverts the contents of the rexx variable rexxvar
to lowercase then capitalises the first letter of each word.
StringCase
Coverts the contents of the rexx variable rexxvar
to either lowercase or uppercase.
CGIScriptError
Returns a complete HTML page and terminates
the script.
getImageSize
If
successful function returns a string containing 3 words identifying the
image type (GIF,BMP or JPG) and width and height in pixels.
getDirectoryUsage
returns the total disk space used in the directory
BuildHTMLGraph
This
function will construct the HTML graph based on data supplied in two stems
and put the graph into graphvar.
BuildHTMLCalander
This function will construct an HTML based Calander
for the month and year supplied and put the HTML into calandervar.
BuildHTMLList
This function will construct an HTML List using
the CRLF sequence found in rexxvar to identify new list items.
BuildPDF
Converts the contents of rexxvar into text only
Adobe PDF format.
sendSMTP
Send
an e-mail via SMTP to the mail server specified
in server.
POP3Mail
Connects
to the POP3 server specified in server using user and password.
getHTTPDocument
Retrieves the document specified by httpURL
from an HTTP web server and returns the document in the REXX variable destinationvar.
returnByHTTP
This
function allow you to control downloads of specific files to the browser.
Actual file location maybe outside of HTTP Server directory so not to be
seen by the browser.
NTPDateTime
This
function returns 4 words describing the local date time and UTC date time
from a NIST server.
DateWeekday
Returns
the weekday for any given day from 01-01-0001.
DateAdjust
Adjusts the date by the specified number of
days.
DateVerify
Verifies
a date is valid using the Julian Calander for days prior to 1582 and the
Gregorian Calander for dates after.
DateDifference
Returns the number of days (either positive
or negative) between 2 dates.
[Back: PsiREXX]
[Next: Perl-Compatible Regular Expressions]