ronz Posted May 3, 2008 Share Posted May 3, 2008 The file() command when used for external (internet url) names sometimes fails - consistently for some urls. For example: file('http://www.akc.org/events/search/index_results.cfm?action=plan&cde_comp_group=AG&NEW_END_DATE1=&event_number=2008006107'); while pages with very similar names work fine. Any idea why this fails and how to get it to work? I have been told that it works ok from some other servers. Thx. Link to comment https://forums.phpfreaks.com/topic/103950-file-command-problem/ Share on other sites More sharing options...
hitman6003 Posted May 3, 2008 Share Posted May 3, 2008 what error does it give when it fails? Link to comment https://forums.phpfreaks.com/topic/103950-file-command-problem/#findComment-532176 Share on other sites More sharing options...
ronz Posted May 6, 2008 Author Share Posted May 6, 2008 How do you capture an error code? I don't see that in the documentation for the file() command. Link to comment https://forums.phpfreaks.com/topic/103950-file-command-problem/#findComment-534824 Share on other sites More sharing options...
DarkWater Posted May 6, 2008 Share Posted May 6, 2008 Do this for us please: file("url") OR die(print_r(debug_backtrace())); Show us it please. Link to comment https://forums.phpfreaks.com/topic/103950-file-command-problem/#findComment-534826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.