File Input Snippets


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.

03 October, 2013   

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

14 August, 2016   

All of the XOR encryption algorithms

22 March, 2015   

Program shows copying one text file from source location to any other location (destination), plus possibility of changing its name, and also shows many language features in exception handling. This program should be run from the command prompt

15 September, 2012   

This will perform the action of deleting many files.

12 August, 2015   

Example shows how to capitalize in MySQL.

22 January, 2011   

The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. You could have the form post with method GET, but that is limited to the typical ?variable=foo&variable2=bar format.

This example code showing how to use PHP Functions to clean User Input

18 September, 2013   

PHP example for listing directory contents

13 April, 2011   

Reading a file to a string couldn't be easier than using the file_get_contents() function. Simple pass the name of the file (with path) and optional parameters

21 December, 2013   

Great page for testing the style guide for a website.

30 August, 2015   

Loads the contents of a dir an sorts them by the date of creation.

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

07 March, 2011   

Shows how to create a simple file download by using PHP. The content could also be dynamically generated)

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...

24 June, 2014   

For downloading very large files (10 meg or more), split the file into chunks when sending.

An example of HTML form control where used-password input box

27 February, 2013   

An example code for tableless forms

15 November, 2012   

This program has two input checks: one for a blank card to indicate end-of-data, and the other for a zero value within the input data. Either condition causes a message to be printed.