DUMP
NAME
dump - Dumps all variables.
SYNOPSIS
dump*();
DESCRIPTION
This function is used to dump all variables, config, request and connection.
EXAMPLES
Note: In the followings examples, the _ between the { should be removed to make it work.
res=. return
--- Config ---
Date=Tue Nov 26 22:34:01 2013
Hostname=octant.laubia.ca
Project=extenso
Document root=/usr/local/websitehtml
Preload=/usr/local/websiteextenso/preload.snc
Error=/usr/local/websiteextenso/errors/en/errors.snc
Locale=fr_CA.utf8
Site=html
Root=/usr/local/website
Dbname=extenso
Dbhost=localhost
Dbuser=extenso
Dbpass=extenso
--- Request ---
the_request=GET fr/login.snc?k=1811 HTTP/1.1
handler=extenso
user=(null)
unparsed_uri=fr/login.snc?k=1811
uri=fr/login.snc
path_info=
args=k=1811
hostname=extensov5.sednove.ca
protocol=HTTP/1.1
filename=/usr/local/websitehtmlfr/login.snc
the_request=GET fr/login.snc?k=1811 HTTP/1.1
--- Connection ---
client_ip=24.225.142.113
remote_host=(null)
local_host=(null)
local_ip=69.90.176.216
remote_logname=(null)
--- Filename=/usr/local/websitehtmlfr/login.snc
sn_errors = {
"filename":"/usr/local/websitehtmlfr/login.snc"
"cfile":"utils.c"
"errcode":4
"filefrom":"/home/laplante/sncodev5/functions/login/login.sn"
"line":72
"error":"Invalid JSON string near: '�'.
"
"cline":753
"compileuid":0
"date":"2013-11-20 15:31:26"
"errmsg":"At line=72,errcode=4 Invalid JSON string near: '�'.
"
}
forget_user = undefined
config = {
"site":"html"
"dbuser":"extenso"
"project":"extenso"
"dbname":"extenso"
"dbpass":"extenso"
"filename":"/usr/local/website/conf/extenso.conf"
"document_root":"/usr/local/websitehtml"
"dbhost":"localhost"
"root":"/usr/local/website"
}
request = {
"protocol":"HTTP/1.1"
"sn_suffix":"snc"
"expecting_100":0
"request_time":{
"isdst":0
"mon":11
"mday":26
"iso":"2013-11-26"
"time":"22:34:01"
"usec":399404
"year":2013
"ctime":"Tue Nov 26 22:34:01 2013"
"wday":2
"yday":329
"iso8601":"20131126"
"sec":1
"rfc":"Wed, 27 Nov 2013 03:34:01 GMT"
"hour":22
"gmtoff":-18000
"unix":1385523241
"min":34
}
"path_info":""
"remaining":0
"sn_basefilename":"login.snc"
"read_length":0
"read_chunked":0
"sent_bodyct":0
"handler":"extenso"
"hostname":"extensov5.sednove.ca"
"bytes_sent":0
"method":"GET"
"filename":"/usr/local/websitehtmlfr/login.snc"
"sn_filename":"htmlfr/login.snc"
"chunked":0
"proto_num":1001
"status":200
"request_mtime":{
"usec":0
"year":1969
"ctime":"Wed Dec 31 19:00:00 1969"
"wday":3
"yday":364
"iso8601":"19691231"
"sec":0
"rfc":"Thu, 01 Jan 1970 00:00:00 GMT"
"hour":19
"gmtoff":-18000
"unix":0
"min":0
"isdst":0
"mon":12
"iso":"1969-12-31"
"mday":31
"time":"19:00:00"
}
"clength":0
"canonical_filename":"/usr/local/websitehtmlfr/login.snc"
"read_body":0
"the_request":"GET fr/login.snc?k=1811 HTTP/1.1"
"method_number":0
"proxyreq":0
"header_only":0
"args":"k=1811"
"uri":"fr/login.snc"
"no_cache":0
"unparsed_uri":"fr/login.snc?k=1811"
}
sncode = true
cgidata = {
"username_or_email":undefined
"k":"1811"
"page":undefined
"username":undefined
"password":undefined
}
page = null
sn_errors = {
"filename":"/usr/local/websitehtmlfr/login.snc"
"cfile":"utils.c"
"errcode":4
"filefrom":"/home/laplante/sncodev5/functions/login/login.sn"
"line":72
"error":"Invalid JSON string near: '�'.
"
"cline":753
"compileuid":0
"date":"2013-11-20 15:31:26"
"errmsg":"At line=72,errcode=4 Invalid JSON string near: '�'.
"
}
user = null
sn_source = "http"
ext = "snc"
login_error = false
forget_password_error = false
SEE ALSO
AUTHOR
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
MODIFICATIONS
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit