Urgent fopen question

From: Ming (mmingxx_at_shaw.ca)
Date: 08/31/04


Date: 31 Aug 2004 02:57:59 -0700

When I use fopen on the URL:
fopen("http://home.pchome.com.tw/world/qoo4ko/110.jpg";, "r")
I would get the following error message:

-----------Error Message------------
Warning: fopen(): Circular redirect, aborting.
Warning: fopen(http://home.pchome.com.tw/world/qoo4ko/110.jpg): failed
to open stream: Permission denied
------------------------------------

But when I use HTML (<img src="<?=$URL?>" alt="">), to display it, it
does display on the screen.

How come fopen cannot open certain URLs while <img> can display them.
Does anyone have any idea why this happens?

I'm try to use fopen to check if a link is broken. If anyone has a
workaround solution, it would be great, too.

Thanks very much.



Relevant Pages

  • Urgent fopen question
    ... Warning: fopen: Circular redirect, aborting. ... to open stream: Permission denied ... How come fopen cannot open certain URLs while can display them. ...
    (comp.lang.php)
  • Urgent fopen question
    ... Warning: fopen: Circular redirect, aborting. ... to open stream: Permission denied ... How come fopen cannot open certain URLs while can display them. ...
    (php.general)
  • Re: Urgent fopen question
    ... > I would get the following error message: ... > Warning: fopen: failed ... > to open stream: Permission denied ... > does display on the screen. ...
    (php.general)
  • Re: Closing modeless dialogs
    ... if you are just looping in the routine and using the dialog to display information during the loop I can't see where you would have a problem. ... If I wanted a modeless dialog to stay open for the life of my application I would make the dialog object a member of my mainframe class and create functions there to start, show, hide, and end the dialog. ... No warnings, no assertions, and I didn't change anything in my code. ... But when I close the dialog using either DestroyWindowor CDialog::OnOKI get the following warning: ...
    (microsoft.public.vc.mfc)
  • RE: Pop Up Message
    ... warning messages displayed by Microsoft Access while a macro or Microsoft ... and then click the Design button on the Database window toolbar. ... click the arrow to display the action list. ...
    (microsoft.public.access.gettingstarted)