Forum Moderators: coopster
Basically I need to, when a new cateogry is created in the db it runs a PHP script that checks to see if dir exists and creates it if not.
Here is an ASP example:
<%
Dim objFSO, objFolder
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
objFolder = Trim(Request("FN"))
'Create Folder if it doesn't already exist
If Not objFSO.FolderExists("D:\Websites\#*$!xx\Articles\"& objFolder) then
objFSO.CreateFolder("D:\Websites\#*$!xx\Articles\"& objFolder)
End If
%>
THank you for any help