Home
Manage Your Code
Snippets for Dave Donaldson
Showing 1-10 of 58
TitleDescriptionLanguageViewsDate Added
Get URL with and without querystring This snippet contains two functions: one to get the current url and one to get the current url without the querystring.PHP34912/31/2010
Loop through all SERVER key-value pairs This snippet loops through all the $_SERVER key-value pairs and prints them out.PHP27712/31/2010
Loop through all POST key-value pairs This snippet will loop through all POST key-value pairs in PHP.PHP25412/27/2010
Recursively Copy Folder (with excludes) in PowerShell This function recursively copies a folder and all subfolders while allowing you to properly exclude certain items.PowerShell88112/1/2009
Recursively Delete Item in PowerShell This function recursively deletes an item from the current location. The item can be a file or folder, and can be specified with or without wildcards.PowerShell39712/1/2009
Create Folder in PowerShell Creates a folder in the current location. If the folder already exists, it will be deleted and then re-created.PowerShell49212/1/2009
Get HTTP Response Content as XElement Returns the entire response content for an HTTP web request as an XElement.C#70110/26/2009
Get HTTP Response Content as String Returns the entire response content for an HTTP web request as a string.C#43310/26/2009
Create HTTP Post Request Method used to post form data and get back an HTTP web request object.C#35510/26/2009
Calculate Number of Pages (for paging) This method calculates the number of pages required when paging.C#26238/4/2009
123456