Category 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
doxentral – A CodeIgniter based Web App.
New to CodeIgniter and looking for a example that helps you learn how a Model is written? or how form_valdiation library is used? and how to integrate SWFUpload? Here is a nice example: doxentral Useful links: CodeIgniter ColorBox jQuery Plugin … Continue reading
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>
HTML to PDF from PHP Made Easy!
Finally, found two new Libraries that makes a PHP programmer’s life easy. Tested both and they seem to work pretty fine for simple requirements like PDF receipt generation or news letter download or e-Ticket/e-Cert generation. FPDF (PHP4 and PHP5) dompdf (PHP5 … Continue reading