agod Posted September 16, 2008 Share Posted September 16, 2008 running a cron. it returns follwing error. "gzfile() expects parameter 2 to be long, string given in .." $lines = gzfile('http://url/file.txt.gz', 'r'); if(!is_array($lines)) die("File could not be opened"); foreach($lines as $line) { Any sollutions? Link to comment https://forums.phpfreaks.com/topic/124506-gzfile-from-cron/ Share on other sites More sharing options...
agod Posted September 16, 2008 Author Share Posted September 16, 2008 just to not this works when running as a webpage. just not as a cron Link to comment https://forums.phpfreaks.com/topic/124506-gzfile-from-cron/#findComment-642976 Share on other sites More sharing options...
agod Posted September 16, 2008 Author Share Posted September 16, 2008 solved it. didnt like the ,'r' part after url. Link to comment https://forums.phpfreaks.com/topic/124506-gzfile-from-cron/#findComment-643000 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.