User Tools

Site Tools


en:web_development:sessions:sessions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:web_development:sessions:sessions [2022/02/02 07:31]
mag
en:web_development:sessions:sessions [2023/08/16 09:33] (current)
Line 255: Line 255:
   * <html>$_SERVER['REQUEST_URI']</html> is the full string entered into the address bar of the browser.   * <html>$_SERVER['REQUEST_URI']</html> is the full string entered into the address bar of the browser.
   * <html>$_SERVER['QUERY_STRING']</html> is everything in the address bar after '?'.   * <html>$_SERVER['QUERY_STRING']</html> is everything in the address bar after '?'.
-  * <html>basename takes a URL and returns everything from the filename on. By adding <html>'?' . $_SERVER['QUERY_STRING']</html> as a parameter, we're telling it to exclude the '?' and everything afterwards.+  * <html>basename</html> takes a URL and returns everything from the filename on. By adding <html>'?' . $_SERVER['QUERY_STRING']</html> as a parameter, we're telling it to exclude the '?' and everything afterwards.
   * Change my name for yours in the <html>error_log</html>.   * Change my name for yours in the <html>error_log</html>.
   * Save and upload the code and try loading 'login.php' again.   * Save and upload the code and try loading 'login.php' again.
en/web_development/sessions/sessions.1643815866.txt.gz · Last modified: 2023/08/16 09:33 (external edit)