Php File Upload Snippets

07 March, 2011   

Shows how to upload a single file to a FTP server.

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 August, 2013   

ColdFusion code for upload files to 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...

27 October, 2011   

An example to include another PHP file into a PHP script

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

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

16 November, 2014   

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

I had to scan a bunch of paper documents (one image per page), and upload them all to a web site that would accept only one PDF file containing the whole set.

18 September, 2013   

PHP example for listing directory contents

24 June, 2014   

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

11 June, 2012   

You may retrieve all needed file path data using PHP's built-in function pathinfo. You don't need to create your own functions or use regular expressions to get this info. It was already been created for this purpose.

07 March, 2011   

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

11 March, 2015   

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

26 December, 2012   

This cron will do the same on Windows as session management works on Linux

27 May, 2013   

Example shows here how to compress CSS with PHP

29 October, 2011   

Here shown an example how to Compress CSS with PHP

13 April, 2013   

How to resize an image to fit in a desired space.

This is a PHP Class that calculates the size, number of files & folders of a specific directory.

Code example using PHP to add/ remove nodes from an XML file