How to Rename when File Uploading using CodeIgniter
This would have been something I could have liked to implement when I built, Bargainph - The Buy and Sell website. I just never got to implementing this very easy feature. Instead, I have been relying on the file's filename and CodeIgniter's built-in renaming to duplicate uploaded files.
Continue reading How to Rename when File Uploading using CodeIgniter
How to Debug Queries with CodeIgniter
If you are like me - browsing through the forums almost everyday - you'll probably notice the large number of questions regarding SQL debugging. I try to answer a few depending on the time I have.
Continue reading How to Debug Queries with CodeIgniter
Does CodeIgniter Automatically Prevent SQL Injection?
So, Does CodeIgniter Automatically Prevent SQL Injection?. The answer is no.
SQL Injection, according to wikipedia, "is a code injection technique that exploits a security vulnerability occurring in the database layer of an application".
Continue reading Does CodeIgniter Automatically Prevent SQL Injection?
Code Completion with Codeigniter using Netbeans
Most programmers are lazy. If you're like me, you're lazy too. That's why I was so happy about using code completion with CodeIgniter using the Netbeans IDE.
Continue reading Code Completion with Codeigniter using Netbeans
CodeIgniter: Route Everything, except these Controllers
There was a recent post on the codeigniter forums trying to get urls like these:
http://yoursite.com/your-slug
Continue reading CodeIgniter: Route Everything, except these Controllers
Automatically Get the Base URL for CodeIgniter
Everytime, we set up or move a Codeigniter site, we have to make sure that the base_url in the config file is correctly set.
Someone recently asked in the CodeIgniter forums about this and we came up with something like this
Continue reading Automatically Get the Base URL for CodeIgniter
CodeIgniter and The HTML Base Tag
You learn something 'new' everyday. This isn't exactly new but it's new to me.
Today, at the CodeIgniter forums, xwero posted an alternative to doing the following:
<?php echo base_url() . 'css/styles.css ?>
Continue reading CodeIgniter and The HTML Base Tag
Array Combine in PHP 4
Coding for PHP 4 is like coding for Internet Explorer 6. You hate it but some people still use it. There are also some things that just don't work.
Continue reading Array Combine in PHP 4