[insert_php]
$ip = getenv(‘HTTP_CLIENT_IP’)?:
getenv(‘HTTP_X_FORWARDED_FOR’)?:
getenv(‘HTTP_X_FORWARDED’)?:
getenv(‘HTTP_FORWARDED_FOR’)?:
getenv(‘HTTP_FORWARDED’)?:
getenv(‘REMOTE_ADDR’);

$file = ‘SMS_clicks.txt’;
// Open the file to get existing content
$current = file_get_contents($file);
// Append a new person to the file

// Write the contents back to the file
file_put_contents($file, $ip, FILE_APPEND | LOCK_EX);
[/insert_php]