qsparse [-r] [-s size] [query]
qsparse 'name=alice&age=18'then environment variables
QS_name
and QS_age
are created, and their contents are 'alice' and '18' respectively.QS_
are put to each names because we should protect system environment variables against malicious clients.
The meaning of options and argument are as follows:
-r
option removes CR code from environment variable-s size
specify buffer size to read query
. [default=16KB]query
is omitted, then qsparse read query
from stdin.qsparse
is designed to process simple query, that is:qsparse
put them into an array elements.qsparse
assumes the names in query consist of alpha-numeric