diff --git a/tech/PHP.wiki b/tech/PHP.wiki new file mode 100644 index 0000000..71e8d59 --- /dev/null +++ b/tech/PHP.wiki @@ -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