[OWASP_PHPSEC] Couple of Questions on Code
Azeddine Islam Mennouchi
azeddine.mennouchi at owasp.org
Thu Jun 27 17:05:20 UTC 2013
I do not have any knowledge about jframework
but for the 2nd question it is totally on the contrary it will make an
error goes away
if any action you are doing can take more than the max_execution time you
need to put set_time_limit(0) or you will Maximum execution time exceeded
I think that $BandwidthLimitInitialSize is a bandwidth limitation (the
amount of data that you read in one time)
The rest I can't tell
On Thu, Jun 27, 2013 at 5:30 PM, rahul chaudhary <
rahul300chaudhary400 at gmail.com> wrote:
> 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
> OWASP_PHP_Security_Project mailing list
> OWASP_PHP_Security_Project at lists.owasp.org
Islam Azeddine Mennouchi
Consultant at NovaSup
OWASP ALGERIA Chapter Leader
phone n°: +213796314102
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OWASP_PHP_Security_Project