Re: [PHP] fopen >> custom 404 issue

2003-12-10 Thread Jason Wong
On Thursday 11 December 2003 08:48, Mike D wrote: > I am trying to read in a particular page to a variable. How do you handle > if the page is a 404 and then redirects to a custom error page? Am I > supposed to use fsockopen and read headers or ?? Ideally I need to pull the > end-result page to sea

[PHP] fopen >> custom 404 issue

2003-12-10 Thread Mike D
I am trying to read in a particular page to a variable. How do you handle if the page is a 404 and then redirects to a custom error page? Am I supposed to use fsockopen and read headers or ?? Ideally I need to pull the end-result page to search for a string in it. Here's the code $handle = fopen