Jump to content


Photo

Circular redirect ????


  • Please log in to reply
2 replies to this topic

#1 kar_120c

kar_120c
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 10 August 2006 - 03:47 PM

I use the function file_get_contents() to read a web page in a script. This script has worked for months but stopped today. I got the following message :

Warning: file_get_contents(): Circular redirect, aborting. in c:\program files\easyphp1-8\www\apec.php on line 74

Warning: file_get_contents(http://www.apec.fr/A...ndexAccueil.jsp): failed to open stream: No error in c:\program files\easyphp1-8\www\apec.php on line 74

Fatal error: Maximum execution time of 30 seconds exceeded in c:\program files\easyphp1-8\www\apec.php on line 30


Any idea of what happened ?

#2 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 10 August 2006 - 06:40 PM

show the code.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#3 kar_120c

kar_120c
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 10 August 2006 - 07:21 PM

Thanks for your answer.

I have solved my problem. I no more use the function file_get_contents() to read the page, but a browser simulator instead and it works. Maybe the site administrator just installed a "leech blocker".

For information, I use the "Snoopy" PHP class to read the web page : http://sourceforge.n...rojects/snoopy/.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users