[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

Regards Islam,


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 >
> self::$BandwidthLimitInitialSize)
>         {
>             $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);
>                 flush();
>                 ob_flush(); //Q3->  You haven't done ob_Start() here but
> still you are using ob_flush() ???
>                 sleep(1);  //Q4->   Why sleep ???
>             }
>             fclose($f);
>             return true;
>         }
>
>
> --
> Regards,
> Rahul Chaudhary
> Ph - 412-519-9634
>
> _______________________________________________
> OWASP_PHP_Security_Project mailing list
> OWASP_PHP_Security_Project at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/owasp_php_security_project
>
>


-- 
Islam Azeddine Mennouchi
Consultant at NovaSup
http://www.novasup.com/
OWASP ALGERIA Chapter Leader
phone n°: +213796314102
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/owasp_php_security_project/attachments/20130627/c77a034f/attachment.html>


More information about the OWASP_PHP_Security_Project mailing list