本文整理匯總了PHP中WebPage::processPageData方法的典型用法代碼示例。如果您正苦於以下問題:PHP WebPage::processPageData方法的具體用法?PHP WebPage::processPageData怎麽用?PHP WebPage::processPageData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WebPage
的用法示例。
在下文中一共展示了WebPage::processPageData方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
/************************************************\
* This code replicates the headers that were *
* sent when the class connected to the url. *
* *
* FIXME: extra headers need to be sent if we are *
* downloading the file. *
* *
* GOTCHA?: need to check if http 1.1 will work *
* correctly *
\************************************************/
//foreach($head as $h) header($h);
/************************************************\
* This block of code displays the page to the *
* user. *
* *
* Note: Both processPageData and getRawPageData *
* close the connection to the URL when they *
* return. You must re-open a connection with *
* openLink to use them again. *
\************************************************/
if ($isHtml) {
$page->processPageData();
if ($encryptPage) {
$page->encryptPage();
}
echo $page->getPageData();
} else {
if ($isImage) {
$page->getRawPageData();
}
}