Change Folder Snippets


When placed in startup scripts, this snippet activates every time user opens a file. It then traverses the directory path backwards and looks for user created project folders. If one is found, script offers to switch it on. This is very useful when working with a number of projects at a time.

This PHP script will get the day of the week from the server date and then display an image (jpg or gif) to match.

15 May, 2013   

ASP example code shown here how to create a folder called New Folder1

23 January, 2012   

How to create a folder named NewFolder2 by ASP. Here shown an example code

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

13 November, 2012   

Use this snippet to let your visitors change the background color of your Web page. Combined with a cookie, the setting could follow them through your whole site.

03 August, 2013   

Example shows bash code to change CWD to file's directory

Change Date from dd/mm/yyyy to yyyy-dd-mm

07 April, 2012   

CSS code to change Text Selection Color

16 March, 2013   

CSS code example to change Text Selection Color

21 February, 2011   

Change Text Selection Color

jQuery code example to show content based on select option.

This function will not recurs subdirectories - it will only return a list of sub folder on the "first" level.

The following code snippet shows you how to open special Explorer windows, like My Computer, Control Panel, Printers, Fonts and more... Written by Nir Sofer

03 January, 2013   

Choose a color scheme as found in the Display control panel applet

15 December, 2011   

Here shown Java code example - The protected keyword

* Code to generate spiral matrix for n elements where n >= 1 * To generate spiral matrix for n elements just * Change the value of MAX to whatever u want :)

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.

Normally index.html or index.php is the default page a server serves up when visiting a directory without specifying a file name. You can change this with .htaccess:

Sometimes it's desirable to change a style of the first and/or last elements in a container. You can do this by manually applying classes to your HTML elements: ("last-child" still not supported in IE8).