-
Notifications
You must be signed in to change notification settings - Fork 6
user
Zimo Xiao edited this page Mar 5, 2018
·
10 revisions
-
- uri - requested uri
- url - requested url
- ip - user's ip
- port - user's port
- agent - user's device agent
- post - POST data
- get - GET data
- file - FILES upload
- dir - directory of your Angel application
-
- user::uri()
- user::url()
- user::ip()
- user::port()
- user::agent()
- user::post($input)
- user::get($input)
- user::file($input)
- user::dir($back)
-
user::uri(); //for http://yoururl.com/your/uri, returns: your/uri user::url(); //for http://yoururl.com/your/uri, returns: http://yoururl.com user::ip(); //return example: 192.168.2.2 user::port(); //return example: 4880 user::agent(); //return example: Mozilla/5.0 (iPhone; CPU iPhone OS... user::post($input); //you can input an array of names (returns array) //or a string of name (returns string) //to get access of specific POST data // //if $input='all', returns all POST data as an array user::get($input); //works the same as user::post() user::file($input); //works the same as user::post() user::dir($back); //returns the directory of your Angel project //$back is a negative int. To access the prior //directory, set $back to -1 ```