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? Link to comment https://forums.phpfreaks.com/topic/96124-file-command-problem/ 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? Link to comment https://forums.phpfreaks.com/topic/96124-file-command-problem/#findComment-492099 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() Link to comment https://forums.phpfreaks.com/topic/96124-file-command-problem/#findComment-493271 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.