In this post we will discuss how to create csv file with PHP and force it to download. We will be pulling data from MySQL database.
Are you a blogger? and using WordPress, then you might be aware of the spam flood which is very common on every blog now a days. Just what we need to do is a little more tweaking to stop these useless comments. In WordPress there are many ways to stop such type of comments.
We can connect to MySQL the easy way or the other way by writing a MySQL wrapper, that’s upto the programmer. In this post, i will not go for any wrapper or class but will share my approach with PDO, which itself is OO.
SMF forum is quit popular open source forum application used by many websites as their main bulletin board. Some time we need to grab posts, topics from the board and show them on our home/index page or anywhere on our main website.
While working on a project last week, i used this function to generate random passwords. There are many styles of password generator available over the net, but it depends which one suits the taste and need.
Some time we need to have a CSV file and store our database data in it for reporting and other things. To create such file on the fly we will need PHP, Apache and MySQL installed which i assume are installed.