I am using:
on one of my sites for a special feature that gets any page's contents, strips it of certain unneeded items, inserts the results into a temporary table, then presents it to the screen for printing. The variable simply builds a URL with any parameters needed for getting the appropriate database entry, which is then fetched by file_get_contents(). The purpose is that a single printpage.php script is needed for printing many dissimilar pages in various areas of the site.
It was working fine until the hosting company made a security change to the server a few weeks ago that causes it to crash with a 406 error message. The exact error is:
Is there some alternative that can fetch the contents if a page similarly to the way file_get_contents() does? Any help is greatly appreciated.
Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases
Code:
$PageCode = file_get_contents("[URL unfurl="true"]http://"[/URL] . $LinkDetails);
on one of my sites for a special feature that gets any page's contents, strips it of certain unneeded items, inserts the results into a temporary table, then presents it to the screen for printing. The variable simply builds a URL with any parameters needed for getting the appropriate database entry, which is then fetched by file_get_contents(). The purpose is that a single printpage.php script is needed for printing many dissimilar pages in various areas of the site.
It was working fine until the hosting company made a security change to the server a few weeks ago that causes it to crash with a 406 error message. The exact error is:
Code:
failed to open stream: HTTP request failed! HTTP/1.1 406 Not Acceptable
Is there some alternative that can fetch the contents if a page similarly to the way file_get_contents() does? Any help is greatly appreciated.
Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases