In other words, how can I tell if the person using my web application is on the server it resides on? If I remember correctly, PHPMyAdmin does something like this for securi
I found a easy answer.
Because all local drives have C: or D: or F: ... etc.
Just detect if the second character is a :
if ( substr_compare(getcwd(),":",1,1) == 0) { echo ''; $client_or_server = 'client'; } else { echo ''; $client_or_server = 'server'; }