Download Chet Ninja Saga Snippets

Apache Code example for blocking based on User-Agent Header

07 March, 2011   

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

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

24 June, 2014   

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

13 November, 2014   

Here is a form that asks for Name and Email address. When the form is submitted the Email address is verified first. If you put in a Name and a correct Email address, an anchor element is displayed allowing the user to download the file, two cookies are created storing the Name and Email address. If the user goes BACK in the browser and tries...

11 February, 2013   

Quicktime still requires the double-object method to get it done across all browsers. Not super pretty, but it does get the job done.

01 June, 2013   

Example shows here how to Embed Code for Quicktime

19 November, 2014   

Enable a link after a set period of time.

20 July, 2013   

Source code for Flash movie into valid XHTML

An example code of how to best insert a flash movie into an XHTML document.

Example shown here how to best insert a flash movie into an XHTML document.

Nice example of how to best insert a flash movie into an XHTML document.

11 September, 2011   

Simple example template of an Import XML

Note that you must include the unit ExtActns in the uses clause.

30 December, 2010   

Class to back up entire databases and email them out, or individual tables

09 February, 2011   

Class to back up entire databases and email them out, or individual tables.