topical media & game development
server-webapi-code-05-manualGeneration.php / php
<?php
function callAPI(devkey, type, action = urlencode(type = urlencode(keyword = urlencode(url = devkey&action=type&keyword=url_info = parse_url(host = path = url_info['query'];
fp=fsockopen(fp, "POST " . fp, "Host: " . fp, "Accept: */*\r\n");
fputs(fp, "Connection: close\r\n");
fputs(fp, "Content-Length: " . strlen(fp, "response="";
while(!feof(response.=fgets(fp);
list(http_content)=explode("\r\n\r\n", http_content;
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.