ksea
Technical User
- Dec 28, 2004
- 37
I've started with a new hosting company which doesn't allow access to cfdirectory. It's not that I have a problem with them turning it off but would like to know if anyone knows how to get around this in their scripting.
When I create a new page most of the information is stored in the DB but images and related files are stored in a directory which the same ID as the page... If this directory has not been created yet I need to create it but I'm running into the "denied access to cfdirectory" problem... It's not going to be a big problem but I was wondering if there was another way to do this.
<cfif NOT DirectoryExists("")>
<!--- create the necessary directories needed --->
<cfdirectory action="CREATE" directory="">
</cfif>
When I create a new page most of the information is stored in the DB but images and related files are stored in a directory which the same ID as the page... If this directory has not been created yet I need to create it but I'm running into the "denied access to cfdirectory" problem... It's not going to be a big problem but I was wondering if there was another way to do this.
<cfif NOT DirectoryExists("")>
<!--- create the necessary directories needed --->
<cfdirectory action="CREATE" directory="">
</cfif>