how to get the absolute path

View: New views
4 Messages — Rating Filter:   Alert me  

how to get the absolute path

by RamaDevi Dobbala :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


now ia m using /../../foldername/filename i am using
i want to remove those dots,
how i need to give

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324344
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: how to get the absolute path

by Jordan Michaels :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


expandPath() is the function you're probably looking for.

Hope that helps!

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Adobe Solution Provider


RamaDevi Dobbala wrote:
> now ia m using /../../foldername/filename i am using
> i want to remove those dots,
> how i need to give
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324346
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: how to get the absolute path

by RamaDevi Dobbala :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


no, i am including my file in another file there i am giving include like this
<cfinclude template="/../../foldername/filename">
it is working fine, but i want to give path instead of that , how to give that.


>expandPath() is the function you're probably looking for.
>
>Hope that helps!
>
>Warm regards,
>Jordan Michaels
>Vivio Technologies
>http://www.viviotech.net/
>Open BlueDragon Steering Committee
>Adobe Solution Provider
>
>
>RamaDevi Dobbala wrote:
>> now ia m using /../../foldername/filename i am using
>> i want to remove those dots,
>> how i need to give
>>
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324347
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: how to get the absolute path

by Matt Quackenbush-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


<cfinclude /> requires either an root-absolute path, or a relative path.  So
you have two choices...

<cfinclude template="/absolute/path/from/root/file.cfm" />

OR

<cfinclude
template="../../relative/path/from/currently/executing/template.cfm" />


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324348
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4