Update for 29-11-22 21:30

This commit is contained in:
Tyler Perkins 2022-11-29 21:30:01 -05:00
parent 399a76446c
commit c23487fe7a
1 changed files with 20 additions and 0 deletions

20
tech/PHP.wiki Normal file
View File

@ -0,0 +1,20 @@
= PHP =
Php is an older, dynamically typed language for making web applications
== Tips and tricks ==
=== Get the address of the connecting party ===
`$_SERVER['REMOTE_ADDR']`
That will show the proxy IP if they are using a proxy. To try and bypass that,
we can try
`$_SERVER['HTTP_X_FORWARDED_FOR']`
== Syntax ==
* All varaibles begin with a dollar sign ($)
* if statement syntax is the same as c-likes