Jump to content

Apache Test Page


adgad

Recommended Posts

Hi,

 

I have a php script (on Stevie) which uses the file command to get the HTML from a page. Up until recently it has been working fine, but for the last few weeks all it brings back is the Apache Test Page.

 

The Script can be found here: http://adgad.heliohost.org/rhyme2.php?word=hello (ignore the hellos)

 

I've tried changing the URL it's accessing with no luck, so I assume the problem is here. Any idea how to get this working again?

 

Thanks!

Link to comment
Share on other sites

This is very weird, but it appears that this line in your code is returning the Apache Test Page:

 

$url='http://www.rhymezone.com/r/rhyme.cgi?Word='.$word.'&typeofrhyme='.$type.'&org1='.$org1.'&org2=l&org3='.$rare;

$data = file($url, FILE_USE_INCLUDE_PATH | FILE_IGNORE_NEW_LINES);

 

From the looks of it, Stevie thinks that the contents of your $url is the Apache Test Page and not the standard rhymezone page.

 

This has really confused me; sorry. Maybe somebody else might be able to help you further...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...