Skowronek

Posts Tagged ‘Development’

Create Multiple Web Sites on XP Version of IIS

AddThis Social Bookmark Button

‘ Create an instance of the virtual directory object
‘ that represents the default Web site.
Set IIsWebVDirRootObj = GetObject(“IIS://localhost/W3SVC/1/Root”)

‘ Use the Windows ADSI container object “Create” method to create
‘ a new virtual directory.
Set IIsWebVDirObj = IIsWebVDirRootObj.Create(“IIsWebVirtualDir”, “NewVDir”)

‘ Use the Windows ADSI object “Put” method to
‘ set some required properties.
IIsWebVDirObj.Put “Path”, “C:\NewContent”
IIsWebVDirObj.Put “AccessRead”, True
IIsWebVDirObj.Put “AccessScript”, True

‘ Use the AppCreate2 method of the IIS ADSI provider to
‘ create an application on the new virtual directory.
IIsWebVDirObj.AppCreate2 1
IIsWebVDirObj.Put “AppFriendlyName”, “NewApp”

‘ Use the Windows ADSI object “SetInfo” method to
‘ save the data to the metabase.
IIsWebVDirObj.SetInfo

Converting .NET DateTime to UNIX Timestamp

AddThis Social Bookmark Button
Note to self:
How to convert .NET DateTime to UNIX timestamp (as in PHP, etc.)
int timestamp = (DateTime.UtcNow – new DateTime(1970,1,1,0,0,0)).TotalSeconds
and convert a Unix timestamp to an ASP.NET DateTime value:
DateTime date = (new DateTime(1970,1,1,0,0,0)).AddSeconds(datestamp)

LAMPS Tutorial (reprint)

AddThis Social Bookmark Button

I decided to bring the LAMPS (Linux, Apache, MySQL, PHP) installation tutorials to skowronek.org just in case the source versions are pulled for some reason. As I didn’t not actually write these, I take no credit or responsibility for their content.

I have relied on these tutorials for my Linux, Apache, MySQL, PHP (LAMP) installations for the past couple of years. (For some reason I am always forgetting to do one thing or another.) I had thought I had lost the actual link to them that I had bookmarked, but was able to relocate the moved pages. So, to ensure that this never gets dropped (at least from my site) I’m creating a mirror of it.

As the I am not the original author, I take no credit nor do I take responsibility for them. I will host them for personal use and others who might need them as well.

LAMPS Tutorial 1.3
LAMPS Tutorial 2.0

http://lamps.efactory.de
http://lamps.efactory.de/e-lamps-2-0.php