Jump to content

Unusual error with PHP/Apache


ThePsion5

Recommended Posts

Hi guys, I'm testing out a crawler class that I wrote recently, and it's doing some strange things when I try to run it. A single file holds it and the related classes - It compiles correctly. However, when I add a test to the end like this:

print 'Starting...<br />';  $Test = new Crawler('www.google.com');  $Test->crawlSite();  print 'Ending...<br />';

Firefox tells me that the document contains no data...a.k.a. a blank screen. If i comment out the two lines where I declare and then run the crawler, then it mysteriously works fine. What exactly is happening here?EDIT: I fixed it now....for whatever reason I managed to send it into an infinite loop but it wasn't outputting each iteration, lol.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...