unkwntech Posted September 12, 2008 Share Posted September 12, 2008 This is not working for who knows what reason, any suggestions. $fileToGet = 'http://pubredirect.servercommand.org/cod4/usermaps/backlot_night/mp_backlot_night.ff'; //...// $remoteFH = fopen($fileToGet, 'r'); //Line 50 I'm getting this: Warning: fopen(http:/pubredirect.servercommand.org/cod4/usermaps/backlot_night/mp_backlot_night.ff) [function.fopen]: failed to open stream: Invalid argument in path/to/file.php on line 50 And clearly the file does exist so I know it's not a 404 Link to comment https://forums.phpfreaks.com/topic/123877-damn-thing/ Share on other sites More sharing options...
Mchl Posted September 12, 2008 Share Posted September 12, 2008 more slashes after http: http://pubredirect.servercommand.org/cod4/usermaps/backlot_night/mp_backlot_night.ff Link to comment https://forums.phpfreaks.com/topic/123877-damn-thing/#findComment-639554 Share on other sites More sharing options...
unkwntech Posted September 12, 2008 Author Share Posted September 12, 2008 sry that was a typo, I fixed it in the original post. Link to comment https://forums.phpfreaks.com/topic/123877-damn-thing/#findComment-639555 Share on other sites More sharing options...
awpti Posted September 12, 2008 Share Posted September 12, 2008 Works for me. Make sure allow_url_fopen = 1 in the php.ini (or On) Link to comment https://forums.phpfreaks.com/topic/123877-damn-thing/#findComment-639556 Share on other sites More sharing options...
unkwntech Posted September 12, 2008 Author Share Posted September 12, 2008 I added: ini_set('allow_url_fopen', '1'); at the top of the script and it still does not work. Link to comment https://forums.phpfreaks.com/topic/123877-damn-thing/#findComment-639558 Share on other sites More sharing options...
unkwntech Posted September 12, 2008 Author Share Posted September 12, 2008 Does the fact that this is a binary file change anything. Link to comment https://forums.phpfreaks.com/topic/123877-damn-thing/#findComment-639563 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.