Tag Archives: PHP

Escape from Magic Quotes for Non-Frameworks Programmers

Here is a quick thing to help you fetch clean data from GET POST COOKIE and REQUEST input variables. Of course, you need to rely on something like mysql_real_escape_string before writing this into a database. But a common function like … Continue reading

Posted in PHP | Tagged , , | Leave a comment

Setting Upload Max Size via .htaccess

Here is an example to allow File Uploads upto 2 GB. You may also have to consider Max Execution Time. PHP4: <IfModule mod_php4.c> php_value upload_max_filesize 2G php_value post_max_size 2G </IfModule> PHP5: <IfModule mod_php5.c> php_value upload_max_filesize 2G php_value post_max_size 2G </IfModule>

Posted in General, PHP | Tagged , , | Leave a comment