We have 2 of our feeds that utilize tables and do not translate well in responsive sites. These are the Is Your Child Sick Illness and Symptoms and Medicine Dosages web post pages.
In order to access the mobile friendly feed, you can replace the following web post pages in your code:
Illness.asp |
changes to |
IllnessMobile.asp |
Medicine.asp |
changes to |
MedicineMobile.asp |
IllnessAAP.asp |
changes to |
IllnessMobileAAP.asp |
MedicineAAP.asp |
changes to |
MedicineMobileAAP.asp |
An example would be:
<?php
$PostPage = "http://getContent.pediatricweb.com/webpost/Illness.asp?";
$variables = "pw_groupid=457&pw_accesscode=BFB1F3DF-0E55-4132-8C79-40AF96F7BCED&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;
?>
changes to
<?php
$PostPage = "http://getContent.pediatricweb.com/webpost/IllnessMobile.asp?";
$variables = "pw_groupid=457&pw_accesscode=BFB1F3DF-0E55-4132-8C79-40AF96F7BCED&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;
?>
Frequently Asked Questions
Currently, there are no FAQs for this subject
Please leave feedback, tips or questions for other users to see