For a guide to the choosing ASP or PHP, click here
Home >> Text Files >> Create a Directory This code sample shows how easy it is to create a new directory through ASP or PHP code. This code also checks to make sure the directory doesn't already exist.
<% ' declare variables dim fso, ourDir ' set our desired new folder ourDir = "newDir" ' check to see if the directory ' already exists Set fso = Server.CreateObject("Scripting.FileSystemObject") if fso.FolderExists(ourDir) then ' directory already exists else ' create directory fso.CreateFolder(ourDir) end if %> What is ASP?
What is PHP?