macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: Server path

Subject: Re: Server path
From: GArlington
Date: Fri, 24 Aug 2007 03:06:26 -0700
Newsgroups: macromedia.coldfusion.cfml_general_discussion
On 24 Aug, 08:30, "man jackals" <[email protected]> wrote:
> Assuming  i register a domain 'mywebsite.com'. Currently and am using the
> following parameters on my computer to upload images 2 a temporary  directory
> then to the webserver images directory. Whats the equivalent when i go online?
>
>  <cfscript>
>         Application.Imagepath = "C:\CFusionMX7\wwwroot\Harvester\";
>         Application.uploadtemp = "c:\temp";
> //Temporary directory
>  </cfscript>

I found it much better (more dynamic)
<cfset Application.rootPath =
GetDirectoryFromPath(GetBaseTemplatePath()) />
this will get you a directory where your application.cfm(.cfc) resides
and you can play it from there...


<Prev in Thread] Current Thread [Next in Thread>