Delete A Folder Snippets


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

15 May, 2013   

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

15 September, 2012   

This will perform the action of deleting many files.

23 January, 2012   

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

A simple DELETE statement in MSSQL

14 May, 2011   

This is a general code to use when deleting an item from a MySQL database. This code isn't considered definitive and can be written in many varied ways. A variation of the code would be not to delete the record (as you tend to always need to restore or retrieve it sooner or later) you can add a 'status' field. If status='d' then it is...

SQL code example to delete WordPress post revision from DB

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.

26 December, 2012   

This cron will do the same on Windows as session management works on Linux

Confirm a deletion (or any action) with Javascript.

Use the same table to query against itself. The greater then sign does the main job of returning only one records of both duplicate records.

22 January, 2012   

C++ example code for showing how to allocate and free memory

08 February, 2014   

How to set/get/delete Cookies

11 December, 2014   

C++ code snippet of simple stack using linked lists, can be used for database management system.

C++ source code for singly linked list - insert, remove, add, count

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

04 July, 2011   

Animation with threads by John E. Grayson

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

15 December, 2012   

Allows you monitor how many times a link/image/banner is clicked.