[CS5] set the path to include php files dynamically

this is my code php
#into file confstart.php i create the session
#$_SESSION["PATH"]["CORELIB"]=$_SERVER['DOCUMENT_ROOT']."/system/core/lib";
include($_SERVER['DOCUMENT_ROOT']."/newportal/system/config/confstart.php");
include($_SESSION["PATH"]["CORELIB"]."/function_rvsfarm.php");
Unfortunately, this  method of assigning variables paths dw does not understand ... can be  set statically in some menu paths?? or to understand the path dw?

Dreamweaver wouldn't understand this locally as the document root isn't always where your files reside.  Also dreamweaver doesn't parse the php script the find your files unless you set up the dynamic content.
I tend to create a constant and hard code the path
define("ABSPATH", "/home/client/domain.com/public_html/");

Similar Messages

  • Where i can set the path to retreive the Km files

    Hello All,
    How to access the KM content files in my portal Application. Where I can set the path to retrieve any file from KM. Please  can any one help me.
    Thanks in Advance

    hi
    I am using the Following code. it gives error.i think i need to import some jar file. can you help which jar file to import and where i can find those jar files.
    Thanks in Advance.
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.resource.IResource;
    import com.sapportals.portal.prt.resource.IResource.*;
    import com.sapportals.portal.security.*;
    import com.sapportals.portal.security.usermanagement.*;
    public class test extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              //IUser user = WPUMFactory.getUserFactory().getEP5User(request.getUser());
              com.sapportals.portal.security.usermanagement.IUser user = null ;
              IResource resourceContext = new ResourceContext(user);
              RID rid = RID.getRID("http://epd.symbol.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.webdav/symbol_productinfo2/cs1504/images");
              try {
                IResource resource = ResourceFactory.getInstance()
                                          .getResource(rid, resourceContext);
                if( resource != null ) {
                   // resource found
                   System.out.println("resource " + resource.getRID() + " found");
                } else {
                   // resource not found
                   System.out.println("resource " + resource.getRID() + " does not exist");
              catch( Exception e ) {
                // problem while retrieving the resource
                System.out.println(
                                       "exception while trying to get resource " + e.getRID()
                                       + ": " + e.getMessage()

  • How should i set the baseURI when a db file path with a space

    if the db file in a path like c:\program file\myapplication,then i set the baseURI dbxml:c:\program file\myapplication ,some exception occur~what should i do ?
    thanks a lot

    The Base URI needs to be a valid URI, which means it cannot include the Windows '\' character at all. In your case, you should be fine using something along the lines of "file:////C:/program file/myapplication"
    (give or take a '/' or two -- I haven't tested this).
    It's a common for BDB XML users to confuse the argument to create/openContainer() (a filesystem path) with the Base URI (a URI). The meanings and requirements are different. The best thing to do is to set and use a container alias (XmlContainer::addAlias()) to use in your queries.
    Regards,
    George

  • How can i set a path for my deployment files in weblogic server 10.3

    Hi
    How can i set the path for my WAR ,JAR files while deploying.i am using the wls10.3 version.
    is there any scripts for this ,please provide me.
    my Application is ADF 11g application.

    By "path", I assume you mean "classpath".
    The simplest way is simply to include the jars you need inside the web application or web module's WEB-INF/lib directory, EJB module's META-INF/lib directory, or EAR lib directory.
    If that's not practical, if you use NodeManager to start your servers, you can go to the "Server Start" tab in the server definition in the WebLogic console and edit the "Classpath" field, which defaults to no value. You can specify a classpath value there. Note that if you specify a value there, it REPLACES the default classpath for the server, it doesn't add to it. If you need to just add to it (a much more likely scenario), if the value references the value "$CLASSPATH" in it, that will reference the original classpath value that the server would have had.
    So, for instance, if you wanted to include the MQ jars in the server classpath, you could set a value like this:
    /usr/java/mq/lib/mq.jar:/usr/java/mq/lib/mqstuff.jar:$CLASSPATH

  • Help, how to install jvm and set the classpath using a batch file

    hello,
    i have created my java application and now have to create an installable / batch file which will install the JVM on the users machine and also the java packages such as javamail and the class files that i have created . it also has to set the classpath.
    i would like to know if anyone can tell me how to go about iti.e. how can i install the JVM using a batch file and then place the javamial packages etc in the apropriate directory .
    or is it advisable to explain it to the user how to go about it in tht user manual.
    and would also like to know that if i install the JVM will the path for the java.exe be set
    or will i have to set the path explicitly from the "batch file" so that the user can run the application without and problem just by running the java command followed by filename from the command prompt.

    hi,
    I have windows and I use it.
    The only problem with the free edition is that you can only create 1 launcher and that during the installation you get 1 popup showing that the installer was created with an unregistered version.
    Stijn

  • Setting the path in Windows98

    Hello,
    I'd like to run my java application on a computer with Windows 98, and not in the java bin directory. I'm familiar with setting the path variables in Windows XP. You go to control panel -> System -> Advanced -> Environment Variable -> and set them as you like. In Windows 98 there seems to be no such method. Instead I'm hacking away at the autoexec.bat file, but I still can't seem to get it to work. Currently, this is what my autoexec.bat file looks like:
    REM [Header]
    @ECHO OFF
    REM [CD-ROM Drive]
    REM c:\windows\command\mscdex /d:gem001
    REM [Miscellaneous]
    REM [Display]
    REM [Sound, MIDI, or Video Capture Card]
    REM [Mouse]
    c:\windows\cwcdata\cwcdos.exe
    PATH=c:\Program Files\Java\jre1.5.0_01\bin;c:\Program Files\Java\jdk1.5.0_01\bin;
    CLASSPATH=c:\Program Files\Java\jre1.5.0_01\bin;c:\Program Files\Java\jdk1.5.0_01\bin;
    I put the path to both the JRE and JDK in both the PATH and CLASSPATH variables just to be sure. From a DOS prompt, the "java" command seems to work from anywhere, but the "javac" command still only works in the bin directory. Can any think of where I'm going wrong?

    This is copied from the installation Instructions for the product you downloaded. (Note the use of quotation marks - eithr do that or uses the 8.3 format of the directory name)
    Microsoft Windows 98 - To set the PATH permanently, open the AUTOEXEC.BAT file and add or change the PATH statement as follows:
    Start the system editor. Choose "Start", "Run" and enter sysedit, then click OK. The system editor starts up with several windows showing. Go to the window that is displaying AUTOEXEC.BAT
    Look for the PATH statement. (If you don't have one, add one.) If you're not sure where to add the path, add it to the right end of the PATH. For example, in the following PATH statement, we have added the bin directory at the right end:
    PATH C:\WINDOWS;C:\WINDOWS\COMMAND;"C:\PROGRAM FILES\JAVA\JDK1.5.0_<version>\BIN"
    Capitalization doesn't matter. The PATH can be a series of directories separated by semi-colons (;). Microsoft Windows searches for programs in the PATH directories in order, from left to right. You should only have one bin directory for a JDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to jdk1.5.0_<version>.
    To make the path take effect in the current Command Prompt window, execute the following:
    C:> c:\autoexec.bat
    To find out the current value of your PATH, to see if it took effect, at the command prompt, type:
    C:> path

  • How to set the PATH in Terminal?

    As a newbie to Bash and the Terminal, in connection with installing a new version of Ruby and various add-ons, I have been messing around with changing the PATH via various methods I've found on the internet, and trying to add a new directory to my PATH. Unfortunately, I cannot figure out how to set the PATH correctly. Here is what I understand so far:
    1. Bash first looks to ".bash_profile" in the home directory for PATH settings.
    2. If none, Bash then looks to ".bash_login" for PATH settings.
    3. If none, Bash then looks to ".profile".
    4. If none, Bash then looks to a system file in "/etc/profile" for default PATH settings.
    5. For a new shell after login, Bash looks for a ".bashrc" file.
    I cannot find any of the above files (I have Finder set to show hidden files already). Somehow, following some instructions from the internet without really knowing what I was doing over the past week I have set my PATH as follows:
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/*****/src:/usr/X11/bin
    but I cannot find the file that is setting this PATH. I have tried creating a new ".bash_profile" shell file and putting it in various places such as "/bin" and "/usr/bin" but the file is not being read.
    * As a temporary workaround I tried using the command "source .bash_profile" upon login to set the PATH using the .bash_profile file that I created, but it does not work.
    * I am able to temporarily alter the path using the command "PATH=/usr/local/bin:$PATH" but this only lasts for an active shell; when I close out and reopen a new shell, it reverts to the default.
    So my questions are:
    Is it correct that there is a "/etc/profile" somewhere that is setting the default PATH? If so where is it? Should I alter it, or create a new ".bash_profile" somewhere to set the PATH? If not, where is my PATH being set? If I should create a new ".bash_profile", what exactly should go in it?
    Thanks in advance for any assistance.

    ... I created a new ".bash_profile" file directly under my home directory and it worked like a charm. Below is the content of the file:
    "PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/"
    What are the "..."'s? Is that just you, or is the contents of the file actually inside of double quotes?
    is there an 'export PATH' also in the file? As in
    PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/
    export PATH
    And did you either restart your Terminal session so your .bash_profile was read, or issue a 'source .bash_profile' command to execute the .bash_profile after your change?
    The only remaining problem is that from the home directory, I'm unable to directly run programs in the above-designated subdirectories (without first navigating to the subdirectory containing the file. Is there something wrong with the syntax or order of the directories I put in the path?
    For example: there is a file called "newprogram.rb" in the "Ruby" directory listed above. I should be able to execute it from the home directory using "ruby newprogram.rb" but it does not work. The same command works fine from within the "Ruby" directory.
    Does the 'ruby' command search PATH to find its scripts?
    Have you read the "man ruby" man page to see if it talks about PATH?
    A common Unix feature is that programs and scripts with the executable bit set, and are located in a PATH directory, will be run if you just type their names.
    For example, if the first line of newprogram.rb script starts with
    #!/usr/bin/ruby
    and if the script is executable
    chmod +x newprogram.rb
    And if it is in a directory in PATH, then just typing
    newprogram.rb
    should run your perl script using /usr/bin/ruby. If you want to use a different version of Ruby, then change the #! line so it point to your version of Ruby. Or if your version of Ruby is found earlier in PATH then the /usr/bin/ruby, you can use
    #!/usr/bin/env ruby
    as your script's first line which will search PATH for 'ruby' and use the first one it finds.
    Message was edited by: BobHarris

  • Set the path and class path in windows xp professional

    hi guys....could any one tell me step by step on how to set the path and classpath on windows xp professioanl? This is my path and classpath
    set path = %path%;C:\jdk1.3.1_02\bin;c:\JOpen672.jar;c:\
    set CLASSPATH = c:\j2sdkee1.3.1\lib\j2ee.jar;c:\JOpen672.Jar;c:\;c:\postgresql.jar;c:\jai_core.jar
    not working please help me on this thanks alot.
    novicepro

    Below is a Helloworld program, copy and paste it into your editor and save it as "HelloWorld.java" Use capitalization, Java is case-sensitive. If you're using Notepad, quote the name when saving, otherwise Notepad adds ".txt" to the name. Go to DOS and check that you've got the file where you want it and that it's named correctly.
    ----------program HelloWorld.java--------------
    public class HelloWorld {
    public static void main (String[] args) {
    System.out.println("Hello World!");
    In the same directory as HelloWorld.java, enter "javac" - the program should print out a list of options, if not, set your PATH - see below.
    In the same directory as HelloWorld.java, enter "javac HelloWorld.java" and the javac compiler will create HelloWorld.class. If it was successful it will not give any messages. Check that the file is created.
    In the same directory as HelloWorld.java, enter "java -cp . HelloWorld" with the spaces and the period. The program will run.
    Here is additional information:
    The Path is a set of pointers that Windows uses to locate programs that you execute, like javac.exe and java.exe. This setting is explained here:
    http://java.sun.com/j2se/1.4/install-windows.html
    Scroll down to: 5. Update the PATH variable
    (you should have already done this as part of the s/w installation)
    The CLASSPATH is another set of pointers that is used by Java to find the files that you create and want compiled and/or run. This setting is explained here:
    Setting the Classpath:
    http://java.sun.com/j2se/1.4/docs/tooldocs/windows/classpath.html
    [NOTE: always start your classpath with ".;" which means the current directory. See my classpath, below]
    How Classes are Found:
    http://java.sun.com/j2se/1.4/docs/tooldocs/findingclasses.html
    Examples:
    This is my path
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BATCH;C:\J2SDK1.4.0_01\BIN;C:\PROGRA~1\UTILIT~1;C:\PROGRA~1\WIN98RK
    This is my classpath
    CLASSPATH=.;C:\mjava;C:\mnrx;C:\NetRexx\lib\NetRexxC.jar;C:\j2sdk1.4.0_1\lib\tools.jar;C:\NetRexx\NrxRedBk

  • Unable to set the path

    I have installed J2SDK1.2.1 & JDK1.3.0_02 in my system.I have declared the path in the environment variableslike this
    Variable Value
    Java I:\jdk1.2.0_02\bin;I:\j2sdkee1.2.1\bin
    Classpath I:\jdk1.2.0_02\lib;I:\j2sdkee1.2.1\lib\j2ee.jar
    JAVA HOME I:\jdk1.3.0_02
    J2EE HOME I:\j2sdkee1.2.1
    this wont work if i open command prompt and if i type javac it gives
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    Again if i set the path in commandprompt then javac command works.And when i try to start the J2EE Server or if i try to use the DEPLOYTOOL it shows
    ERROR: Set J2EE_HOME before running this script.
    I dont know what is the problem.Is the coding that i have given is correct .Please help me out.
    Thanks in Advance
    Sriram

    Actually i have learnt core java and i am pretty good with it.but i have started learning j2ee and in my course material that i have has given the instruction for staring the server and i have given the codings as the book instruction says.But still iam not able to do it.I use win2000prof and i can an i am executing the normal java programs in my system but the problem is i need to set the path every time i open the command prompt.And the other problem is i am not able to start the j2ee server and without starting the server i am not able to practise.
    Sriram

  • How to set the path variable on Windows ME?

    I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.

    Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.

  • How dos the application will know the path of persistence.xml file

    Hi ,
    I am seeing examples for ConatierManaged EntityManager
    @PersistenceContext
    public class Test extends HttpServlet
    public void doGet()
    EntityManager em
    // JnDI Lookup code
    em = (EntityManager) ctx.lookup("java:comp/env/persistence/em");
    em.persist(Employee)
    }Inside web.xml file
    <web-app>
    <persistence-context-ref>
    <persistence-context-ref-name>persistence/em</persistence-context-ref-name>
      <persistence-unit-name>my-pu</persistence-unit-name>
    </persistence-context-ref>
    </web-app>Please tell me how the Application will know the path of persistence.xml file .
    Thank you for reading

    it is predefined; JPA always looks for the persistence.xml file in the META-INF folder.

  • Error when setting the path in KAWA IDE Help !!

    I am using SDK 1.4 and KAWA IDE .. when i set the path ... it showing an error message...also when i complile it shows correct the bin ,lib settings wht i do....... help me...

    thnks replysssss i got corrected by mine itself
    thnks

  • To set the path

    Hi everyone,
    I am in the starting stage of java & i want to know how to set the path for java..i tried it but it giving an error ,so can please help me out in this..
    shubha

    Goto:
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    Here you will find instructions on setting the path among other info. Bad form using a Goto but I just cant resist :)

  • Set the PATH permanently windows vista 32-bit

    I need to set the PATH variable permanently for running JDK without specify the full path to the executable every time with windows vista 32-bit but I don't know how to do it. Someone can help me?
    I tried what this site said but it doesn't work (or I do it wrong)
    http://java.sun.com/j2se/1.5.0/install-windows.html

    hi,
    via setting environment variables
    steps for windows 2000, but you to try the same in vista also, may be steps only differ,
    place your cursor on my computer -> right click -> properties -> advance -> environment variables -> system variable -> path->edit
    add " ;drivename:\path "
    ex:
    ;c:\jdk1.5.0\bin

  • Set the path of SAP HELP

    Friends,
            My Basis Admin want to set the path of SAP HELP which is not working currently, so will you pls. tell us the way through which my Basis friend can set the path for it.
            Thanks
    Hitz

    Hi Hitesh,
    Refer to the link
    <a href="http://www.sap-basis-abap.com/sapbs028.htm">http://www.sap-basis-abap.com/sapbs028.htm</a>
    Hope it helps...
    Lokesh
    pls. reward appropriate points by clicking the stars on the left side

Maybe you are looking for