Folder Snippets

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

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.

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

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

In order for this to work, you will need to copy mysqldump.exe and mysql.exe from the MySQL bin Program Files folder into the same directory as your executing PHP script. If you know the direct path to these for your server, you can use those instead.

09 February, 2011   

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

26 December, 2012   

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

This is a PHP Class that calculates the size, number of files & folders of a specific directory.

30 December, 2010   

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

An example code to restore MSSQL database from backup