vimwiki/tech/PHP.wiki

21 lines
413 B
Plaintext

= 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