A small list of some useful code snippets which might help you when writing your PHP scripts including file uploads, get user IP address, using MDB2, sending mail, password generator, XSL, etc
That getRealIpAddr() function is retarded. It's less reliable that just checking REMOTE_ADDR. At least when relying on REMOTE_ADDR you have *something* (the IP of the proxy), but that function can give you complete garbage.
Comments
c-ovidiu.tk replied ago:
That getRealIpAddr() function is retarded. It's less reliable that just checking REMOTE_ADDR. At least when relying on REMOTE_ADDR you have *something* (the IP of the proxy), but that function can give you complete garbage.
Voters For This Link (13)
Voters Against This Link (1)