Create File Snippets


03 October, 2013   

Basic commands for reading a text file one line at a time.

Jave code for PDF Generation using iText JAR

CSS code snippet for Style Links Depending on Destination

Two simple functions to read an write tab seperated files (like CSV files, etc).

16 March, 2014   

How to create mysql table using php. The php script as follows as:

11 March, 2015   

PHP code shows how to upload images into a mysql database using

In order for this to work, you will need to copy mysqldump.exe and mysql.exe from the MySQL bin Program Files folder into the same directory as your executing PHP script. If you know the direct path to these for your server, you can use those instead.

Example htaccess snippets to remove File Extention from URLs

09 October, 2011   

This code shows how to backup a table to a CSV file.

01 August, 2013   

Example Java code for Fast File Copy using NIO

25 October, 2012   

Java code example to fast file copy using NIO

03 August, 2013   

Example shows bash code to change CWD to file's directory

PHP’s rmdir function does not allow the deletion of a folder if it is not empty.

04 February, 2011   

This is different than the default code that Flash provides. That typically involves the <embed> tag and is not valid XHTML. This doesn't use that, and is fully valid.

13 November, 2012   

Creating and maintaining an effective JavaScript toolbox can greatly reduce development time. This script will show you how to include specific snippet modules on individual pages.

19 May, 2012   

Example code to create CSV from MySQL

18 March, 2015   

Example shows how to load a text file

22 February, 2018   

MySQL Code Snippets to Export Table to File CSV

26 July, 2012   

Java code example to append text to file in Java

05 December, 2012   

Instead of providing a traditional address to the image, the image file data is base64-encoded and stuffed within the src attribute. Doing so saves a network request for each image, and prevent exposure of directory paths. Please note that IE7 and below are not compatibles with data URIs.