Make Directory





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 7 Next »
2
Date Submitted Sun. Sep. 9th, 2007 12:15 PM
Revision 1
Beginner bala
Tags ASP | VBSCRIPT
Comments 0 comments

If you're using passwords of any type on your site, it is best to keep them random. That way they cannot be easily guessed at by intruders.

First, it's good to know a little about ASCII characters. Every character your keyboard can type is actually represented by a number. So the letter A is represented by 65. The letter Z is represented by 90. So all you need to do is generate a series of random numbers, each number between 65 and 90. That would give you a way to find the equivalent letters.

If you want to include numbers too, those are found between spots 48 and 57. I wouldn't use the spots between 57 and 65 - those are odd characters like colons.




So let's say you want to create a 7 character password that contains a random assortment of letters and numbers. You could do something like this:
4
Date Submitted Tue. Dec. 5th, 2006 2:50 PM
Revision 1
Scripter Casper42
Tags VBSCRIPT | wscript
Comments 0 comments
This was an update someone else's snippet...
VBScript is a graceful language and Windows Scripting Host cleans up after itself, so this is a compact version for simple usage - reducing code bloat is what small scripts are for.

Just my $.02...
0
Date Submitted Wed. Oct. 29th, 2008 10:51 AM
Revision 1
Helper Celebhir
Tags Directory | find | Folder | PHP | Recursive | search
Comments 1 comments
This function takes a directory, and a "folder" search parameter.
If it finds the directory (either in single level, or any sub folder) it will return the relative path of that folder. "FALSE" if not found. Skips over files and "." and ".." directories. Recursive by default.
0
Date Submitted Wed. Oct. 29th, 2008 9:21 AM
Revision 1
Helper Celebhir
Tags Directory | Files | PHP | Recursive | structure | tree
Comments 0 comments
Takes a given directory and lists all the files and folders under it, including sub folders. Resulting array contains associative (folders) and indexed (files) elements. Doesn't return "." and ".."
0
Date Submitted Wed. Oct. 29th, 2008 11:26 AM
Revision 1
Helper Celebhir
Tags Directory | File | PHP | Recursive | search
Comments 0 comments
This function tries to locate a file in a give folder (either single level, or in any sub folder). Returns the relative file and path, or FALSE if not found. Skips over "." and "..".
-2
Date Submitted Thu. Mar. 2nd, 2006 5:03 AM
Revision 1
Syntax Master dannyboy
Tags exists | File | Folder | VBSCRIPT
Comments 0 comments

Checks to see if a file or folder exists
The fFile variable determines whether you're
looking for a File (True) or Folder(False)
The strName variable holds the fully qualified
path you're looking For
3
Date Submitted Thu. Mar. 2nd, 2006 5:23 AM
Revision 1
Syntax Master dannyboy
Tags File | Folder | VBSCRIPT
Comments 0 comments
this function returns the aggregated size
of all files in a directory and its subdirectories
3
Date Submitted Thu. Mar. 2nd, 2006 10:05 AM
Revision 1
Syntax Master dannyboy
Tags File | Folder | VBSCRIPT
Comments 1 comments
Check the attributes of a file or folde
-5
Date Submitted Tue. Feb. 28th, 2006 5:20 AM
Revision 1
Syntax Master dannyboy
Tags ASP | Convert | VBSCRIPT
Comments 0 comments
Convert a decimal symbol to a binary
-5
Date Submitted Tue. Feb. 28th, 2006 5:27 AM
Revision 1
Syntax Master dannyboy
Tags ASP | Convert | VBSCRIPT
Comments 0 comments
Displays the hex value for an HTML color given the decimal RGB values. Uses Internet Explorer to show the hex value in the color itself.

« Previous 1 2 3 4 5 6 7 Next »