Archives

Archive for the ‘PHP’ Category

You may want to display the time it took to load a page. Following is a set of simple PHP code which would help you achieve this goal. Place the following snippet at the very top of your page. (Ultimately, it’s advisable to have a header file and a footer file that are included on [...]

Aug 4th, 2008 | Filed under PHP, Tips & Tricks

This is useful for anyone who’d like to add a login form to any php page. Simply, save the following code as access.php, and insert the following snippet on the first line of any php file you want protected. < ?php include "access.php"; ?> (remove the space before the question mark) Voila! as easy as [...]

Apr 3rd, 2007 | Filed under PHP, Tips & Tricks

This is a simple script that will allow you to import csv data into your database. This comes handy because you can simply edit the appropriate fields, upload it along with the csv file and call it from the web and it will do the rest. It allows you to specify the delimiter in this [...]

Feb 19th, 2007 | Filed under PHP, Tips & Tricks

For the follows out there who do not know how to import coma separated data into mysql from the prompt, here it is: Assume: PATH is the path to the csv file (can be relative to the directory you were in before logging into mysql) TABLE is the table name that you have already created [...]

Jan 11th, 2007 | Filed under MySQL, PHP, Tips & Tricks
This blog is protected by Dave\\\\\\\'s Spam Karma 2: 14411 Spams eaten and counting...