PHP Domian API Key
<p>So I am looking to use this api script:</p>

<p><a href="http://blog.andreaolivato.net/programming/create-your-first-api-set-in-php.html" rel="nofollow">http://blog.andreaolivato.net/programming/create-your-first-api-set-in-php.html</a></p>

<p>However the results have a link that has a variable lets call it assoc.</p>

<p>What I am looking to do is to release a script that users can put on there websites and use the call to get products in Json like the script, but when they get the link to the product for the script to figure out what the domain name is match it in my database when the api call is made and return the products but with the links that include the assoc id from the domain that makes the call. </p>

<p>Example.com   will return  a link www.mydomain.com/products.php?tv/assoc=exampleid</p>

<p>Anybody has an example to do this. I wanted to use the <code>$_SERVER['HTTP_REFERER']</code></p>

<p>Anybody know an example that will check the domain. </p>

<p>I figured I can send the domain name with the api call. and use get on the server side, will this be a good approach?  </p>

<p>I have two options, release a code that stores all the data on the clients server and i have nothing to do with it. Or i can release a script that only keep some data but most of the products and such are on my server but change there link with the users ID. </p>

<p>The reason I am looking for this is because I think this will be a bit easier then using ION Cube to encode the script. Mostly because is so dam expensive. </p>
