adgad Posted August 26, 2011 Posted August 26, 2011 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!
jje Posted August 26, 2011 Posted August 26, 2011 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now