give us a call: 336.574.4280

Is Your Child Sick

[insert_php] $PostPage = “http://getContent.pediatricweb.com/webpost/Illness.asp?”;
$variables = “pw_groupid=640&pw_accesscode=d7Qcr77RuXK7w7777lsoQ7L77rXy77Rk7I&pw_url=&tCategoryId=” . $_GET[“tCategoryId”] . $_POST[“tCategoryId”] . “&tArticleId=” . $_GET[“tArticleId”] . $_POST[“tArticleId”] . “&tArticleStyle=” . $_GET[“tArticleStyle”] . $_POST[“tArticleStyle”] . “&pw_articlepage=/Is-Your-Child-Sick/”;
$query = $PostPage . $variables;
$url = parse_url($query);
$host = $url[“host”];
$path = $url[“path”] . “?” . $url[“query”];
$timeout = 1;
$fp = fsockopen ($host, 80, $errno, $errstr, $timeout);
if ($fp) {
fputs ($fp, “GET $path HTTP/1.0\nHost: ” . $host . “\n\n”);
while (!feof($fp)) {
$buf .= fgets($fp, 128);
}
$lines = split(“\n”, $buf);
$varResult = $lines[count($lines)-1];
fclose($fp);
} else {
# enter error handing code here
}
echo $varResult;
[/insert_php]