Archives
It was about time, that the PHP team finally included a max_file_uploads directive to limit the number of file upload per request (default is of 20). (cf. http://www.php.net/ChangeLog-5.php#5.3.1) Until PHP 5.3.1, it was possible to send an X number of file upload request thus creating an X amount of temporary file on the targeted system.. [...]
Nov 24th, 2009 | Filed under PHP
Tags: denial of service, PHP
1. if you were to use between print or echo… use echo (Echo is known to be faster than print) 2. when doing string searches or action, do not simply/quickly jump on regex, but first have a look at php api’s string functions such as strpbrk, stripos etc.. 3. Display smart error messages… A lot [...]
Tags: code, Programming