-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to send a GET request? #5
Comments
For instance, if you call your script with this request:
the By the way, in your script you are redeclaring the |
@lastguest , added µ::_(); |
write a simple example of the method $_GET |
Just try this :
Now you can call it in your browser like this :
Important: • You must setup a front-controller pattern for redirecting all requests to the
• Some web server configurations appends the query string part of the request URL to the A more stable approach is replacing the Please, remember that this is an experiment just for fun. Do not use it in production! |
@lastguest , well, thank you |
Eg
' ; }); µ::GET('/', function() { echo $_GET['username']; }); ?>It is impossible to get a username.
What's wrong? Help me please.
The text was updated successfully, but these errors were encountered: