Snippets For Pdf File Snippets


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.

Jave code for PDF Generation using iText JAR

CSS code snippet for Style Links Depending on Destination

Usually when you try to download something from a web server you get a request asking whether you want to save the file or open it. To avoid that you can use the below code on your .htaccess file

Example htaccess snippets to remove File Extention from URLs

22 February, 2018   

MySQL Code Snippets to Export Table to File CSV

29 December, 2011   

ASP code example for a random link, each time you load the page, it will display one of two links: Xentrik.net OR Xentrik Snippets.

How to dynamically update your Snippets

18 September, 2013   

PHP example for listing directory contents

Automatically Discover Document Links And Apply Class

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

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

06 March, 2012   

An example code for JavaScript Jump Menu

24 June, 2014   

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

24 October, 2016   

You should NOT use this if you are ACTUALLY using WordPress.

16 November, 2014   

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