title: execute iplog.php on click of links
body: <p>i am logging visitors IP by the following code below</p>
  <pre><code>$iplogfile = 'ips.txt';
      $ipaddress = $_SERVER['REMOTE_ADDR'];
          $webpage = $_SERVER['SCRIPT_NAME'];
              $timestamp = date('d/m/Y h:i:s');
              $browser = $_SERVER['HTTP_USER_AGENT'];
          $fp = fopen($iplogfile, 'a+');
          chmod($iplogfile, 0777);
      fwrite($fp, '['.$timestamp.']: '.$ipaddress.' '.$webpage.' '.$browser. &quot;\r\n&quot;);
  fclose($fp);
  </code></pre>
  <p>but i want it to be execute only when user clicks on this particular links</p>
  <pre><code>&lt;a href=&quot;tel:+1 (000) 000-0000&quot; class=&quot;btn-blue btn-red&quot;&gt;Book Now&lt;/a&gt;
  &lt;a href=&quot;tel:+1 (111) 111-1111&quot; class=&quot;btn-blue btn-red&quot;&gt;Call Now&lt;/a&gt;
  </code></pre>
  <p>can someone help me out here? i cannot figure out how to acheive it :(</p>
  <p>Thanks alot for your help and input.</p>