Create Add To Favorites Snippets


You may create a back button like your browser has. The following script allows the visitor to press a button and returns the him to the previous page.

When developing applications that need to operate on files and directories it is a common task to, for example, get the list of all sub-directories for a given directory.

05 August, 2015   

Shows how to access the HTTP headers from a given web adress.

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

Add Non-Breaking Space on Title to Prevent Widows

11 September, 2014   

Code to display the current time as a .PNG image.

Passing in a simple string of text converting it to lowercase and replacing all the spaces with a dash

06 November, 2013   

This Java code example on how to hide a frame when closed

23 January, 2012   

How to create a text file named newtest.txt . here shown an example ASP code

31 December, 2011   

How to create a procedure for date calculation

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

Example shown here how to preload the images with jquery in WordPress.

08 February, 2017   

Code example to create a new file under linux

PHP code to add sortable column to WordPress in admin area .

09 February, 2011   

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

The below snippet will create a MySQL user and grant them all permissions on the given database.

15 November, 2016   

Add this to the Flash embed code

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.

The mysql_fetch_assoc "converts" a row from a table into an associative array. The mysql_insert_array "converts" an associative array into a row in a table.

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.