Posted By

gerhardsletten on 01/28/09


Tagged

textmate cakephp


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hmvrulz


IP and Agent in CakePHP


 / Published in: Other
 

  1. $this->data['Comment']['ip'] = $_SERVER['REMOTE_ADDR'];
  2. $this->data['Comment']['agent'] = $_SERVER['HTTP_USER_AGENT'];

Report this snippet  

You need to login to post a comment.