954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

[function.fopen]: failed to open stream

Hi,
I am running this Check Page Rank site

There is just one prob left with the code.
When I submit a domain for analysis if the domain doesn't have a history at archive.com it come out error like this
Example result ~
If result with archive.com is successful like this result

Warning: fopen( <a href="http://web.archive.org/web/*/telepresenceforum.com">http://web.archive.org/web/*/telepresenceforum.com</a> ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/cprws/public_html/index.php on line 150

Warning: fread(): supplied argument is not a valid stream resource in /home/cprws/public_html/index.php on line 151

Warning: fclose(): supplied argument is not a valid stream resource in /home/cprws/public_html/index.php on line 154

Any programmers that can help me solve this prob?
Thanks a lot in advance.

wussa
Newbie Poster
23 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

Try using @ in front of function name.
@fopen
@fread
@fclose

PoA
Posting Whiz in Training
237 posts since Jul 2004
Reputation Points: 26
Solved Threads: 9
 

OMG. Thats work. Test it now at checkpagerank.ws
Thanks a lot dude. Rep+
Do you do part-time work? PM me thanks.

wussa
Newbie Poster
23 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 
OMG. Thats work. Test it now at checkpagerank.ws Thanks a lot dude. Rep+ Do you do part-time work? PM me thanks.


Hey Wussa,

I ve joined dani web after reading your post related to checkpagerank.ws.

your website is good mate.

I have a question, how is it that you continuously query Alexa from your website and they dont block you, Are you using their paid service? I need to add similar functionality in a App software i m working.

Same for google and live queries for backlink, Dont they block your IP? whats the way?


Answer to above will be really helpfull and might save me lot of time.


Thanks,
Kaft

kaft
Newbie Poster
1 post since Mar 2009
Reputation Points: 10
Solved Threads: 0
 

All adding "@" to the function does is HIDE the error codes. If fopen is failing, it will still fail after you hide the error with @fopen.

5tein
Newbie Poster
1 post since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

but tihs way only hide error

tami64
Newbie Poster
7 posts since Jul 2009
Reputation Points: 10
Solved Threads: 1
 

[CODE]Warning: fopen(/home/zeenetics/offersinn.com/wp-content/themes/free-styl/style.css) [function.fopen]: failed to open stream: No such file or directory in /home/zeenetics/offersinn.com/wp-includes/functions.php on line 4165

Warning: fread(): supplied argument is not a valid stream resource in /home/zeenetics/offersinn.com/wp-includes/functions.php on line 4168

Warning: fclose(): supplied argument is not a valid stream resource in /home/zeenetics/offersinn.com/wp-includes/functions.php on line 4171[CODE]
I have to face this mesg when i am uplod a them @ Wordpress So Tell what I can do. 2cindly i want to add Shoping Theme @ my wordpress butt he show me mesg thath R sure u want this nad after this asking me Press the Buten Please Try Agin what I can Do Please Help Me

Mannantasneem
Newbie Poster
1 post since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You