ronz Posted March 14, 2008 Share Posted March 14, 2008 The file command works fine most of the time to read an internet page. However, sometimes it fails and I can't tell why. Here's an example: file('http://www.akc.org/events/search/index_results.cfm?action=plan&cde_comp_group=AG&NEW_END_DATE1=&event_number=2008065001'); if you put this url etc in the browser url line it brings up the page ok, but if you do it with a file command, it fails. Other similar pages on the same site work fine. Any idea if there's a ini_set I should be using, or maybe try a different way to read the page? Quote Link to comment Share on other sites More sharing options...
lordfrikk Posted March 14, 2008 Share Posted March 14, 2008 Works fine for me. Any errors showing up? Quote Link to comment Share on other sites More sharing options...
ronz Posted March 16, 2008 Author Share Posted March 16, 2008 Where would I see an error? I just get an empty array. if (!$clx = file($url)) I don't see anything about error codes in the documentation for file() Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.