Function to return a folders size (vbs) Files attached

Here is a little vbs function that will return the size of a folder in bytes

Active Directory User Group Membership IsMenber

Here is a very useful VBS function; I use it a lot in logon scrips.

The function will return True or False depending on if the current user running the script is a member of the AD group passed to the function.

To get the function working you will need to replace domain_name_here in the function with you active directory domain name

 This script will not work with nested groups

PHP Relative date function: today, yesterday 2 days ago, in 3 days etc

Here is a function I have recently had to use you pass a time / date string in strtotime format and the function will return a string with a date relative to today.

Examples of what the function can return

Today

Yesterday

Tomorrow

In 2 days

In 6 days

5 days ago

Thursday 17 January

Tuesday 4 January 2005

Design by
ThemeShark.com - Drupal Themes with Bite!
Drupal Themes
with bite!