Welcome Guest, Not a member yet? Register   Sign In
Ignore 404 error in get_meta_tags or fopen in PHP
#1

[eluser]bilal ghouri[/eluser]
how to Ignore 404 error in get_meta_tags or fopen in PHP ?

I really need to know it..

for example, we have a custom 404 page.
when we use fopen on it, it gives error 404 stream thingy.
is there any way to ignore the error and open the page and fetch its content?
Please help !!

I know I can add a @ to stop warnings, but This wont work.
this will just stop executing the script without any error.
I want the script to be executed even if there is a 404 error, in clear words:
fetch the error 404 page

I am using get_meta_tags to fetch the page(only meta tags) , I tried fopen
I am mainly trying to get the meta tags from the page ( even if it is a custom 404 error page )

Please help !!!!

Thanks in advance


Messages In This Thread
Ignore 404 error in get_meta_tags or fopen in PHP - by El Forum - 06-20-2008, 09:19 AM
Ignore 404 error in get_meta_tags or fopen in PHP - by El Forum - 06-22-2008, 06:55 AM
Ignore 404 error in get_meta_tags or fopen in PHP - by El Forum - 06-22-2008, 06:59 AM
Ignore 404 error in get_meta_tags or fopen in PHP - by El Forum - 06-22-2008, 07:03 AM
Ignore 404 error in get_meta_tags or fopen in PHP - by El Forum - 06-23-2008, 02:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB