IP and Agent in CakePHP


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $this->data['Comment']['ip'] = $_SERVER['REMOTE_ADDR'];
  2. $this->data['Comment']['agent'] = $_SERVER['HTTP_USER_AGENT'];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.