hi I want to code my own affiliate link manager I want to detect invalid/expired affiliate link Someone told me this function parse_url,but it didn't work Affiliate link is something like this http://www.kqzyfj.com/click-3185217-10580890 and when somebody click it it goes to here http://www.tellmemorestore.com/default.asp When it's invalid ,I'm sure it won't go to http://www.tellmemorestore.com/default.asp How can I know if and affiliate link is invalid or expired?
Basically an affiliate has an id and an ad id (id : 3185217 , ad id : 10580890) , so you basically check if those to values are assigned to a person (the first id) and to an ad campaign (the ad id).
Thanks for your reply,but you don't catch me I know that already I want this: When the php code detect one affiliate expired,then automatically email me,notify me it is expired Hope you understand what I mean
So then you should have a column in your affiliate database named "Expired" as timestamp or date and on each click you should check if it is expired (if not in a cronjob)
hey ,I'm sure you still don't understan what I mean I get those affiliate links from affiliate networks like cj,linkshare,it's not my own link so I can't know the exact date or timestamp they expired,so I need php code to check them every day or week,and email me those expired links
for cj just look at : http://www.cj.com/resources/ws/itemdetail.html and for general api info : http://www.cj.com/resources/web-services-api.html I don't think you can code a general code you can use for all affil's , you will need to add code for each new affil that has a web api.