Skip Download Dialogue Snippets

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

07 March, 2011   

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

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

29 March, 2015   

When creating an index, the default method Oracle uses to sort the index is in ascending order (SORT). However, if the rows are already stored in the database in ascending order you can use the NOSORT clause to skip the sorting process. If neither SORT or NOSORT is provided, Oracle will use SORT as the clause.

Apache Code example for blocking based on User-Agent Header

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.

PHP’s rmdir function does not allow the deletion of a folder if it is not empty.

13 October, 2015   

This function removes all duplicated lines of the given text file.

Two objects are included here, a reader and a parser. All you need to do is instantiate the xmlParser object and let it do the job for you. nextToken() will return the next token, which can be a tag or the text between 2 tags. the isTag() will determine if this is a tag so you can do something smart with it. Lastly you can jumpTo($tagname) if...

13 February, 2013   

PHP Code example for ASCII CAPTCHA

30 December, 2010   

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