Dynamically find the web root

I'm doing one of my truly dynamic applications as long as the reading of the configuration xml file. The configuration file is in my web root (config.cfm), that this file is simply an XML encapsulated in comment tags to prevent anyone to see if they go through it directly. Also, there is another file in the web root called findpath.cfm. Find the path contains ExpandPath("*.*) which I am hoping to use to capture and save a variable with the physical path. The physical path for both of these files is C:\CFusionMX\wwwroot\opiax

Well, here's my question. Let's say I want to dynamically find the path to these files in the C:\CFusionMX\wwwroot\opiax\_admin directory in my application.cfm

How can I do this with ColdFusion MX 6.1?

I thought about it. Move my configuration file to its own folder and determine where I am.



Tags: ColdFusion

Similar Questions

  • How to access a CFC outside the web root

    I need to access several of the CFCS that are sitting outside the web root, however, I can't seem to find the right way to call the component.  For example... My Flex project is located in a folder under the web root.  My CFC sit in a folder at the same level as the web root.

    To illustrate:

    The web root is c:\coldfusion8\wwwroot

    CFCS are in a folder c:\coldfusion8\com

    A CFC that I need to access is named fxCFC and is located at c:\coldfusion8\com\fxCFC.cfc

    The Flex project is named fxProject and is located at c:\coldfusion\wwwroot\fxProject

    The application is called main.mxml and resides in c:\coldfusion\wwwroot\fxProject\src\main.mxml

    I can't call the CFC using "com.fxCFC" as my compiled application cannot see the component.  I guess that since the CFC to sit above the root.  Is there a way I can access?

    Thank you!

    Man I feel so stupid, I forgot the option in the remoting-config. XML which allows you to turn on the mappings.

    It is the solution, your wwwroot CF proceed to web-inf/flex/services-config.xml, search for and modify

    false
    

    for this

    true
    

    Restart the servers and maps to start working.

    I'm so stupid sometimes.

  • How to find the Web sites of high quality backlinks?

    Original title: how to find quality backlinks?

    Updates on the algorithms research of new google forward a site spammy that build a bad backlinks. But how to find the Web sites of high quality backlinks? Could we must spend a lot of money to get their links?
    Please help me.

    I want to increase backlinks to my site

    Hello

    I recommend you contact Google support for assistance:

    http://support.Google.com/bin/static.py?hl=en&page=portal_groups.cs

    Hope the helps of information.

  • This program can not find the Web page

    I have Windows XP.  Every time you start-up the computer and after the restart, the screen "this program can not find the Web page" appears.  I have to close it manually to display the desktop before entering for example or Google chrome.  How to get rid of the error screen?

    I have Windows XP.  Every time you start-up the computer and after the restart, the screen "this program can not find the Web page" appears.  I have to close it manually to display the desktop before entering for example or Google chrome.  How to get rid of the error screen?

    try to use "Autoruns for Windows" and check if there is a boot entry that is associated with your problem. If you do not disable an item at a time and restart the pc and isolate it.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902

  • Access files outside the web root?

    Hello, everyone.

    Hypothetical scenario.

    I wanted to have a file that would set globally accessible variables to contain passwords, and I want to put this file outside the web root, so that users can not access.

    Logical pathnames of course won't work.  And the cfinclude tag doesn't use physical paths.

    I've never done this before.  What are my options?

    Thank you

    ^_^

    Almost all your CFML files should not be in a directory web-driven!  That those people really are looking for should be accessible web.

    Files must not be accessible to be web - ed or be instantiated as objects, or used as a custom tag.

    FOR EXAMPLE:

    C:\webapps\myapp<= this="" dir="" is="" the="" root="" as="" far="" as="" coldfusion="" is="">

    C:\webapps\myapp\wwwroot<= that="" dir="" is="" the="" webroot="" as="" far="" as="" the="" web="" server="">

    C:\webapps\myapp\includes<= files="" you="">

    C:\webapps\myapp\api<=>

    The only things that should be dir wwwroot files people really browse (index.cfm, etc.) and components such as images, JS and CSS files that must be served to the browser.

    Most of your CFM files must be in a subdirectory of C:\webapps\myapp.

    So index.cfm must be traveled, and it must use the data in secretSecureStuff.cfm which is in understand this respectively.  Then index.cfm is just:

    include "/ myapp/includes/secretSecureStuff.cfm";

    If the file to include is not in the structure of subdirectory myapp for some reason, you can create a mapping in CFAdmin or Application.cfc to point to it, for example:

    /External. => C:\stuff\somewhere\else

    And you référenceriez C:\stuff\somewhere\else\outside.cfm via:

    include "/ external / outside.cfm";

    --

    Adam

  • How to find the square root of a number/variable

    I have a number within a variable.

    How to find the square root of the variable?

    for example:

    xxyy var = 57;

    I want to find the square root of 57;

    use:

    trace (Math.sqrt (xxyy));

  • Setting up a Dreamweaver Site with directories outside the Web root

    I have my web server, the following web site structure:

    \WebSite\ wwwbeta.evansville.edu D:\
    \Extensions\CustomTags\ wwwbeta.evansville.edu D:\
    \Extensions\Components\ wwwbeta.evansville.edu D:\
    \Extensions\Includes\ wwwbeta.evansville.edu D:\

    The web site in the web server root, is mapped to "D:\ wwwbeta.evansville.edu \WebSite\.
    The other three directories of "Extensions" are accessible only by ColdFusion and should stay outside the web root. However, I want to be able to edit these directories in DW, as well.

    In Dreamweaver, I have the local root folder defined on C:\WebSites\ wwwbeta.evansville.edu.
    The HTTP address is on http://wwwbeta.evansville.edu/

    However, these settings just don't jive during the insertion of links. (I don't want to use relative links. We only use absolute links).

    When I insert a link, it will as long as "/ WebSite/Link.cfm. I understand very well why this is happening. However, I am looking for suggestions on how to configure DW, if possible, for me to work with all of these directories, in a unique site of DW definition, generating yet correct absolute links.

    I don't think that this is possible. Please show me the light.

    Thank you!

    > However, these settings just don't jive during the insertion of links. (I don't want to
    > use relative links. We only use absolute links).
    >
    > When I insert a link, it will as long as "/ WebSite/Link.cfm.

    It is a relative path, a relative path root site.

    because you chose a folder which is a folder of level higher than we should
    for the record of Site Local to this site, dw made the wrong way.

    There was not anyway you want.
    Set the Site Local folder to
    \WebSite\ wwwbeta.evansville.edu D:\

    and dw will properly the root of the relative site or document relative paths for
    the main site folder

    You will not be able to touch anything in these other folders with dw, because
    they are out of the structure of the site.

    You can define a new site for each of the other files, and then you could
    have dw make correct paths when working on includes, for example.

    As far as I KNOW, you can't do it with a single site def.

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.Adobe.com/communities/experts/

  • Windows error message "cannot find the Web site.

    Whenever I have access to a Web site, I get this error message: "Windows cannot find (specific Web site).  Make sure you typed the name correctly and try again"

    Firefox crashed and I restarted in safe mode with all disabled add-ons.  I'm adding the Add-ons, but this windows error message persists.  How to prevent the error message since websites load normally anyway?

    Hello

    Try to Reset Internet Explorer and check if it works.
  • where can I find the web publishing wizard

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • Programs that you have problems with Vista
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    It does not come with Vista (as it did for XP or can be downloaded for XP).  Neither is it a specific download to do this with Vista only, but it can be downloaded and used in conjunction with certain versions of Microsoft Office at:http://virtual508.com/download.html (but it isn't so free either).

    I also read the following shows but don't know if it's true (but if you decide to try this, be sure to first create a Restore Point system and backup the registry just to be sure.

    Officially, MS said they took the "Web Publishing Wizard" of Vista. Well, low and behold, hacking around the registry, I found out what they were really doing with it. They renamed it to "order prints Wizard."

    And renamed the location regitry from:
    HKCU\Softw...\Explorer\PublishingWizard\PublishingWizard\Providers
    TO:
    HKCU\Softw...\Explorer\PublishingWizard\InternetPhotoPrinting\Providers

    Yes, it's that simple, just replace "PublishingWizard" with "InternetPhotoPrinting" in the reg file. And use Windows Photo Gallery to 'print' your photos to your gallery. It's the exact SAME Wizard just renamed in print!

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Find the Web on page fragment

    Hello

    as knows where to find the component on the page we will via viewRoot.
    How can we find component dynamically on the page fragment when no tag < f: view > present?

    Hello

    to add to the comment by Timo, it depends on whatyour handle is when you search. Say that the handle is an event of action (action of listening on a command button) then your search could be

    actionEvent.getUIComponent () .findComponent ("the_id_to_find")

    Note that using this construction, research is relative component with that start you. If the component you are looking for is in the same naming container, then you use just the ID of the component, if it is outside then you will need to use the naming container in front of the element Id, separated by a colon ': '. Here ADF Faces does not different from any other set of JSF components

    Frank

  • Cannot find the web service endpoint

    Hello

    I did a .NET dll containing a Service reference built based on a WSDL file.

    In the VS2008 solution, I also have a console to test and everything works fine. I can create the client giving endpoint corresponding to an xml node in the app.config of the DLL file as a parameter.

    To work, the console executable must also have an app.config with the same endpoint definition. Otherwise, you have this error:

    The instance of the .NET class could not be found.
    Could not find the endpoint with name 'A400TMaintenanceSOAP' and 'ServiceReference400T.A400TMaintenance' contracts in the ServiceModel client configuration section. This may be because no configuration file was found for your application, or that no element of the endpoint associated with this name could be found in the customer element.

    Now when I call the TestStand dll, I have this error and I guess that's because the end point is not defined anywhere for TestStand. I tried to copy a file of SeqEdit.exe.config next to the SeqEdit.exe with the endpoint defined (like console in my c# project), but it did not work.

    Is there a way I can make it work so I can call the sequence of the editor dll?

    I've attached my dll project's app.config file (created automatically based on the WSDL file).

    Thanks for your time.

    -Mat

    I think you may have an error in your config file. The error message says: 'Could not find the endpoint with name 'A400TMaintenanceSOAP' and 'ServiceReference400T.A400TMaintenance' contracts in the ServiceModel client configuration section', but has your config file:


    "bindingConfiguration = contract"A400TMaintenanceSOAP"="A400T_Maintenance.A400TMaintenance"
    name = "A400TMaintenanceSOAP" / >

    So it seems that you have the contract bad name in one place or the other (very probably in the config file). I don't think that you need the Assembly decided in this case. I think you can use a configuration file for seqedit.exe like you had originally.

    Hope this helps,

    -Doug

  • ENVY 7640: Could not find the web page to activate the printer

    Try to install the ENVY 7640. Get to the point where I have to go online to activate but couldn't find the link given (serieshttp://www.hp.com/ePrint/HP WANT 7640). Where can I activate?

    Thank you

    From my understanding, Yes, that means register. He worked for you by going to the link directly?

  • Dynamically find the Integer and the Data Type of a Decimal column

    Table: test (INTE number, DECISION number (7.2)) of the

    Try to dynamically determine the type of column.

    Use select user_tab_columns data_type. It returns only the NUMBER that does not indicate whether the column is an integer or a decimal data type.

    Is there a way to dynamically determine whether a column is around or type decimal?

    Thank you

    create table test (INTE, DECI number number (7.2));

    Select column_name, data_type, data_precision from dba_tab_columns where table_name = 'TEST '.

    COLUMN_NAME DATA_TYPE DATA_PRECISION
    ------------------------------ ---------------------------------------------------------------------------------------------------------- --------------
    NUMBER OF INTE
    DECI, NUMBER 7

  • Why Chrome can not find the Web page when previewing in the browser?

    HI -.

    It's pretty weird to me.

    I can get a glimpse of any site I've been working on the use of any browser I have except Chrome (version current 33.0.1750.152).

    For example - when I use the preview in browser - Chrome says "the Web page is not found" - is the path to the page:

    file://external-drive/_PROJECTS/client/_FILES-from-client/_SITE-031614/index.html

    My next step is to manually navigate the page using file/open Chrome.  It works perfectly, but when the page is displayed that the path is different:

    file:///volumes/external-drive/_PROJECTS/CUSTOMER/_files of customer/_SITE-031614/index.html

    This second way is the same path in line to manage the Site Sites/Site/Local folder.  All other browsers (FFox, Safari, Opera) use this second path.  But for some reason, Chrome has shortened the path to a wrong address.  Weird!

    I don't think that this is related to the Mavericks, because it was going on before this upgrade.

    Anyone had this happen?  Can someone explain how can I fix?

    TIA your insight.

    JL2

    BTW - other details:

    Dreamweaver version 12 (CS6), Mac OS X 10.9.2.

    Chrome does not open your webpages from Dreamweaver if the files are on your USB. If you put your files on your computer (on your desktop, for example), Chrome will open your file in the browser via "Preview in browser". I hope this helps...

  • get the path of the web root by programming?

    I have a column in a database with an absolute path to a file on our Web server.
    What function can I call to return to the root Web where the CF server is actually running?

    I tried getContextRoot() but that returns a coldfusion temp directory.

    Of course... it's what I couldn't find in the docs. Thank you

Maybe you are looking for

  • Google search terms are superimposed with any file time/all/any language.

    Using FF, Google search terms are superimposed with any file time/all/any language. The result is that I don't see the search correctly term to change or add to. This shows a screenshot of the problem. http://t.co/LAU0DLKW I think that the problem is

  • Installation, Thinkpad 520, Ubuntu 11.10 tips

    I have a Thinkpad with Intel + NVidia graphics. Can anyone offer advice on what to do during the initial installation? Should I disable or activate the NVidea/Intel/Optimus graphics? I believe that there is an option in the BIOS. I read on the projec

  • Please tell me I don't [mess] my BIOS

    I had a crackling sound and jerking due to the latency problem and I found using google update the BIOS may solve it. My BIOS version was 1.04 and were new (1.07, 1.08, 1.09, 1.11, 1.23, 1.24 or something like that). I downloaded all of them and star

  • Scanning time

    I put my MSE to scan Monday @ 18:00 when I leave work. I arrive the next day and it seems it all started. I have the CPU at 100%. Why is this? He said: it did not begin until 08:01 Tuesday morning.

  • BBM can I keep my old BBM Pin during the passage of the Iphone 5 iPhone 6

    I have a very nice bbm pin on my iphone 5, and I recently moved to iPhone 6; When you enter my email on the new device (iphone 6) I had all the contacts but on a new pin code. I really need the old pin code, it is really urgent! Help, please