[OWASP_PHPSEC] Couple of Questions on Code

rahul chaudhary rahul300chaudhary400 at gmail.com
Thu Jun 27 15:30:01 UTC 2013

This is the code inside Feed in download.php inside jFramwork: Comments are
my questions:

//Q1-> What does $BandwidthLimitInitialSize represents ???
if (self::$BandwidthLimitInitialSize>0 && $FileSize >
            $f = fopen($File, "rb");
            fseek($f, $seek_start);
            set_time_limit(0);   // Q2->   Why is time set to 0. Would't it
trigger an error ???
            while (! feof($f))
                echo fread($f, self::$BandwidthLimitSpeed);
                ob_flush(); //Q3->  You haven't done ob_Start() here but
still you are using ob_flush() ???
                sleep(1);  //Q4->   Why sleep ???
            return true;

Rahul Chaudhary
Ph - 412-519-9634
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/owasp_php_security_project/attachments/20130627/dcd020e6/attachment.html>

More information about the OWASP_PHP_Security_Project mailing list