Create File Download Snippets


Java code example to list the Files or Subdirectories in a Directory

Java code for listing files or sub-directories in a directory

30 March, 2011   

Need to unzip a file? this function can do that for you. It is reccomended that the functions.php file and the file that exicutes the unzip function are NOT in the same directory as the zip files. unzip ( string $zipfile , string $newLocation ) zipfile gets the name of the current zip file. newLocation is where you want to store all the...

20 July, 2015   

This example shows how to serialize a simple object by using the XmlSerializer.

02 December, 2012   

Delphi code example to extract a resource to file

16 November, 2014   

Useful php code to see if the current file is being included or run directly.

24 June, 2015   

Create a table with the results from a SELECT statement.

This MATLAB code snippet reads in a file stored in the current directory and stores specified lines from the file in a new cell array for manipulation in MATLAB.

In order to add a splash screen to your black berry app, you need to create an XML file, name it "blackberry-tablet.xml" and place it at root level --With your Application descriptor file.

CSS code example how to custom File Input Styling in WebKit/Blink

11 February, 2013   

File inputs can have an attribute of "multiple" which then allows multiple files to be selected in the file section dialog box.

The .NET Framework doesn't support automatic detection of character encoding in the default file I/O methods. This is a quick function that returns True in the specified file is Unicode.

04 May, 2013   

C++ code example shown here how to write to text file.

Here are the procedure example to create table. you can call this procedure by command like : call myProc();

04 May, 2013   

How to read text file and print its contents to the console line by line.

Simplest way to to export a MySQL table to a pipe delimited file.

30 March, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when the last page was loaded 3. We need a...

Here are the example to create temporary table in a procedure .

04 May, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. Introduction ----------------------- This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when...

13 October, 2013   

To create 'examples' database on your MySQL server you should run the following script