Attempting to process the first API call from Client
<p>Let say client side making the first call the my API . How I process the first API call?
How should I  intercept the  <a href="http://www.mycom.com/api/GET?name=simple" rel="nofollow">http://www.mycom.com/api/GET?name=simple</a> call inside api.php?</p>

<p>client.php</p>

<pre><code>    &lt;?php 
$ch = curl_init();
$url = 'http://www.mycom.com/api/GET?name=simple';
curl_setopt($ch, CURLOPT_GET, true);
curl_setopt($ch, CURLOPT_URL, $url);
$json = curl_exec($ch);
echo "\n".$json."\n";

 ?&gt; 
</code></pre>

<p>api.php  what's inside?</p>

<pre><code>&lt;?php

?&gt;
</code></pre>
