Read BMP File Requires Absolute Path

I noticed something today regarding the Graphics Formats, Read JPG File, Read PNG File and Read BMP File vi's. It seems that when reading a JPG or PNG file, a relative path is OK, but when reading a BMP file, an absolute path is required. When the path only contains the filename, it returns:
    Error 1430
    "Open/Create/Replace File in Read BMP File Data.vi->Read BMP File.vi->ReadImageFileTest.vi"
I tried a simple test that uses either the relative or absolute path, trying to read 3 different files in the same directory as the VI. Only the Read BMP File errors. Of course, the simple work around is to always use the full pathname to a file. Is this only on my system? Is this a known bug or feature or expected behavior?
I'm using LabVIEW 8.2 on Windows XP.
Thanks!
B-)
Message Edited by LabViewGuruWannabe on 11-05-2007 11:06 PM
Attachments:
ReadImageFileTest-FPgood.PNG ‏30 KB
ReadImageFileTest-FPbad.PNG ‏26 KB
ReadImageFileTest-BD1.PNG ‏48 KB

Missed this on the first post:
Message Edited by LabViewGuruWannabe on 11-05-2007 11:10 PM
Attachments:
ReadImageFileTest-BD.PNG ‏48 KB

Similar Messages

  • Robohelp HTML command-line utility overwrites merged files in .hhp file with absolute paths. Any way to prevent this?

    I have a Robohelp 11 HTML project which uses merged CHM files. I have a help build script which compiles this project using the RH command-line utility. Whenever this runs, RH overwrites the names of the merged CHM files in the .hhp file to use absolute paths (even if the .hhp file is read-only!). I've searched Adobe forums and this appears to be a RH bug. In my case, it doesn't stop the project performing the merge, but it looks like it causes problems when searching the resultant parent CHM (topics matching the search simply don't show up in child projects), as the search cannot necessarily find the merged files referenced in the .hhp when someone performs the search on a different machine. I notice that if I compile via the RH UI, the .hhp entries are not overwritten. So, a workaround is to do the build manually. However, we'd like to automate our help build. Is there any way to prevent the command-line compiler overwriting the merge file entries in the .hhp?

    This was a problem with Rh9, see Item 13 at Using RoboHelp 9
    I haven't seen it reported since but maybe something at that link will help.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to get InputStream from a file with absolute path?

    Hi, guys:
    If I have file with a absolute path that may be inside/outside
    my Eclipse plugin, I want to get an InputStream from it. It just keeps giving me null for "is":
    String absFilePath = "/D:/my_dir/.../sample_file.txt";
    InputStream is = getClass().getResourceAsStream(absFilePath);
    regards,

    Don't use resource as stream if you have an absolute path, use FileInputStream.

  • How do you find a filechooser file's absolute path ?

    Hi everyone,
    I'm a little confused. I'm using a filechooser in my GUI to get two files. I then pass their names to another class where I am attempting to read them. When I choose testfile1 from C:\My Documents And Settings\ Danielle \ My Documents \ testfile1.txt, and pass it's name to the other class, the call: file1.getAbsolutePath() returns the path C:\projects\testfile1.txt. (Obviously I've assigned the String file1 to testfile1.txt).
    I'm running into problems because of this-- according to FileReader, my testfile1.txt doesn't exist (unsurprising- Java isn't looking in the right place).
    So, how do I get the filechooser to pass the correct absolute path so that FileReader has something to work with?
    Thanks,
    Danielle
    Message was edited by:
    cdelmio

    getSelectedFile returns a File object. The File object contains methods to get the fully-qualified path (getAbsolutePath() I believe). Presumably you are invoking some other method (getName() I assume) which returns the file name only, and so you have thrown away that valuable piece of information.

  • Problem in reading BMP file .....

    I've facing some inconsistency in reading BMP headers. There are two of them, and I've outlined them below....
    Here's a description of the BMP headers, just for refreshing ....
    1.
         typedef struct {
         BITMAPFILEHEADER bmfHeader;
         BITMAPINFOHEADER bmiHeader;
         GLubyte *image_data;
         } BITMAP_IMAGE;
         typedef struct tagBITMAPFILEHEADER {
              WORD bfType;               // 2B
              DWORD bfSize;               // 4B
              WORD bfReserved1;     // 2B
              WORD bfReserved2;     // 2B
              DWORD bfOffBits;          // 4B
         } BITMAPFILEHEADER, *PBITMAPFILEHEADER;
         typedef struct tagBITMAPINFOHEADER{
         DWORD biSize;
         LONG biWidth;
         LONG biHeight;
         WORD biPlanes;
         WORD biBitCount;
         DWORD biCompression;
         DWORD biSizeImage;
         LONG biXPelsPerMeter;
         LONG biYPelsPerMeter;
         DWORD biClrUsed;
         DWORD biClrImportant;
         } BITMAPINFOHEADER, *PBITMAPINFOHEADER;
    2. The file I'm reading test2.bmp has the following parameters
         File Type                     Windows 3.x Bitmap (BMP)
         Width                         4
         Height                         4
         Horizontal Resolution     96
         Vertical Resolution          96
         Bit Depth                    24
         Color Representation     True Color RGB
         Compression                    (uncompressed)
         Size                         102 bytes
         Size on disk               4.00 KB (4,096 bytes)
    3. Output of the program is....
              File Headers are...
              bfType :424d
              bfSize :102
              bfReserved1 :0
              bfReserved2 :0
              bfOffBits :54
              File Info Headers are...
              biSize :40
              biWidth :4
              biHeight :4
              biPlanes :0
              biBitCount :1
              biCompression :1572864
              biSizeImage :48
              biXPelsPerMeter :196
              biYPelsPerMeter :234881220
              biClrUsed :234881024
              biClrImportant :0
    4.      readInt()     4
              Reads four input bytes and returns an int value.
         readUnsignedShort()     2
              Reads two input bytes and returns an int value in the range 0 through 65535.
         readByte()
              Reads one Byte
    5. The bfType fields value should be 'BM' whose Hex is 0x4D42 according to this link
    http://edais.earlsoft.co.uk/Tutorials/Programming/Bitmaps/BMPch1.html
    But the Hex I get is 424d.How come ?
    6. When reading bfSize (see ## ), we should read 4 bytes as per the above structure. But I don't
    get the answer of 102 when I do readInt() (which reads 4B). On the contrary, when I do
    readByte(), thats when I the right file size of 102.
    Why ?
    Rest all the output look ok.
    import java.io.*;
    class BMPReader{
         private byte data[];
         private DataInputStream dis = null;
         public BMPReader(String fileName){
              readFile(fileName);
         private void readFile(String fileName){
              try{
                   dis = new DataInputStream(new FileInputStream(new File(fileName)));
              catch(Exception e){
                   System.out.println(e);
         public void printFileHeader(){
              System.out.println("File Headers are...");
              try{
                   // converting the 2 bytes read to Hex
                   System.out.println("bfType :" + Integer.toString(dis.readUnsignedShort(),16));
                   System.out.println("bfSize :" + dis.readInt());
                   //System.out.println("bfSize :" + dis.readByte());// ## identifier, should read 4B here instead of 1B
                   System.out.println("bfReserved1 :" + dis.readUnsignedShort());     // bfReserved1
                   System.out.println("bfReserved2 :" + dis.readUnsignedShort());     // bfReserved2
                   System.out.println("bfOffBits      :" + dis.readInt());               // bfOffBits
              catch(Exception e){
                   System.out.println(e.toString());
         public void printFileInfoHeader(){
              System.out.println();
              System.out.println("File Info Headers are...");
              try{
                   System.out.println("biSize           :" + dis.readInt());                         //DWORD
                   System.out.println("biWidth      :" + dis.readInt());                     //LONG
                   System.out.println("biHeight      :" + dis.readInt());                     //LONG
                   System.out.println("biPlanes      :" + dis.readUnsignedShort());          //WORD
                   System.out.println("biBitCount      :" + dis.readUnsignedShort());     //WORD
                   System.out.println("biCompression     :" + dis.readInt());               //DWORD
                   System.out.println("biSizeImage      :" + dis.readInt());               //DWORD
                   System.out.println("biXPelsPerMeter :" + dis.readInt());          //LONG
                   System.out.println("biYPelsPerMeter :" + dis.readInt());          //LONG
                   System.out.println("biClrUsed          :" + dis.readInt());                    //DWORD
                   System.out.println("biClrImportant      :" + dis.readInt());               //DWORD
              catch(Exception e){
                   System.out.println(e.toString());
    public class BMPReadForum{
         public static void main(String args[]){
              String fName = "test2.bmp";
              BMPReader bmpReader = new BMPReader(fName);
              bmpReader.printFileHeader();
              bmpReader.printFileInfoHeader();
    }

    I stumbled across this thread while messing with numbers coming out of my palm (via pilot-xfer) that are unsigned 32 bit values read into a 4 element byte array. I would very much like to turn these things into longs. I looked over the above posted code (for which I am most grateful) and made some alterations that seemed prudent, would someone be so kind as to verify that this is doing what I would like it to do?
    private long makeUInt(byte[] b) {
        // Convert a four byte array into an unsigned
        // int value. Created to handle converting
        // binary data in files to DWORDs, or
        // unsigned ints.
        long result = 0;
        int bit;
        int n = 0;    // I assumed this was the power to take the base to - 0 for lsb
        // I further assumed that we need to move backwards through this array,
        // as LSB is in the largest index, is this right?
        for (int a=3; a >= 0; a--) {
            // Similarly, I need to step through this backwards, for the same
            // reason
            for (int i=7; i >= 0; i--) {
                bit = b[a] & 1;
                result += bit * Math.pow(2, n++);
                b[a] >>>= 1;
        return result;
    }So, as you see - I assumed the "n" term was a count for what power of 2 we were in in the bit string, and I further assumed that, since for me the MSB is in the byte array element with the largest index, I needed to work backwards through this thing.
    Does this seem reasonable?
    Thanks a lot
    Lee

  • Something about read bmp file

    I want to read a part of a picture,for example ,a picuture ,what I only want to display in the front palette is that the center region of it?Which vision function
    should I use?Thank you so much!

    Hi
    You can do this with the use of IMAQ Extract function
    Sasi.
    Certified LabVIEW Associate Developer
    If you can DREAM it, You can DO it - Walt Disney

  • How to read images in jsp from an absolute path not from the web app?

    hello there
    i want to read images from an absolute path on the hard disk not from the images folder in the web application
    how to do that?
    thank you

    Ok. You don't give the servlet the full path of an image. You just give an image id in query string. E.g.
    http://my.server.com/imageServlet?id=12Id can be whatever: number as well as name.
    Then, in your servlet You get this id, then read an image file that is mapped for this id and sends it to browser via servlet output stream.
    On the jsp page you write sth similar to:
    <img src="http://my.server.com/imageServlet?id=12"/>and your image will be displayed using your servlet. The image file path is needed only in the servlet code to open the stream to file (image file can be stored wherever you want in file system), read it and write to output stream. Read the tutorial accessible via link I provided in the previous post.

  • 'Read JPEG File.vi' does not seem to work on PXI with real-time OS

    I am trying to read a jpeg file on a PXI system with LabVIEW real-time on it. To test I created a very simple VI (attached) with only 4 objects: 'Path' --> 'Read JPEG File.vi' --> 'Draw Flattened Pixmap.vi' --> 'Picture'.
    This VI works fine on my Windows XP host machine, but it does not work on the PXI system. The error code 1 occurs in 'Read JPEG File.vi'.
    The jpeg picture is in the same directory as the VI. I don't think I got the path or filename wrong because if I change the file or path name I get another error: 7: 'File/Directory Info in Check Path.vi->Read JPEG File.vi->test.vi'.
    Maybe reading jpeg files is not supported on realtime systems? I could not find anything about it. Sol
    utions or workarounds are of course welcome!
    Attachments:
    Test_Read_JPEG.vi ‏23 KB

    'Read JPEG File.vi' is not supported on LabVIEW RT. I believe it has to do with special functions or libraries need to be called due to the JPEG image type. Instead you can use a Bitmap and the 'Read BMP File.vi', which I believe is completely implemented in G code.
    Keep in mind that the RT System doesn't really have a front panel and that the front panel is only 'available' when LabVIEW is connected to the target such as being targeted or having a remote panel to it. Generally, a deployed RT system doesn't have a UI and just communicates to a Host VI which acts as the UI. Having said that, the BMP file worked when I tested.
    Regards,
    JR A.

  • How to find a BMP file included with Applicatio​n in LabView?

    I have a VI that I would like to build into an application (.EXE).  The VI has a Picture indicator, whose source is a BMP on my local hard drive.  Using "Read BMP File.vi" and a Path constant, it's relatively easy to read the BMP and display it in the indicator.  I know how to include the file with the distribution (Build App or DLL -> Installer Settings -> Files), but how does one determine the location of the file after users install the EXE? I tried using just the filename of the picture in the path constant, hoping it would look in it's current directory, but I received an error.  With the full path in the path constant, everything works just fine.
    Thank you,
    ...jerry

    You can reconstruct the path. Use the "Current VI's path" to get the
    path of the caller VI. Then use the "Build path" and Strip path" to
    build the path to your file.
    Note that in an executable, the VIs path includes the executable, like
    the following:  C:\directory_name\my_exec.exe\main.vi
    The attached code (image) should do it (or at least give you a start).
    Regards;
    Enrique
    www.vartortech.com
    Attachments:
    path_to_file.gif ‏2 KB

  • Case management - read attached file info

    Dear Experts,
       I have a requirement to read the atatched file information of a CASE.
    Is the information present in any table or there any standard method in SCASE for this purpose ?
    Thanks
    Ikshula

    'Read JPEG File.vi' is not supported on LabVIEW RT. I believe it has to do with special functions or libraries need to be called due to the JPEG image type. Instead you can use a Bitmap and the 'Read BMP File.vi', which I believe is completely implemented in G code.
    Keep in mind that the RT System doesn't really have a front panel and that the front panel is only 'available' when LabVIEW is connected to the target such as being targeted or having a remote panel to it. Generally, a deployed RT system doesn't have a UI and just communicates to a Host VI which acts as the UI. Having said that, the BMP file worked when I tested.
    Regards,
    JR A.

  • Call Executable​, absolute path doesnt work as expected

    Hi all,
    i have a problem with the step call executable.
    I configure the step (call a .exe or bat file) with absolute path.
    As long as Teststand runs with the seq-file loaded all works fine.
    The problem shows up when i close the seq-file and reload it later.
    Then the configuration seems to be ok (still the absolute path).
    But when i execute the seq-file it runs the .exe or .bat file as it only has
    the relative path in the configuration.
    I know that, because it wanna load some files from the same folder
    and it doesn't find them after reloading the seq-file.
    Sincerely Stefan Bölsterli

    I use Teststand 3.0

  • Help reading .csv file into an arraylist

    i need to read a csv file into an arraylist and then print the arraylist to the screen.
    using:
    try {
                // Setup our scanner to read the file at the path c:\test.txt
                Scanner myscanner = new Scanner(new File("\\carsDB.csv"));    
    ArrayList<CarsClass> carsClass = new ArrayList<CarsClass>(" write all fields");   
                while (myscanner.hasNextLine()) {
    myscanner.add(" add car fields to the carClass");              // Write your code here.
    // loop to read them all to the screencsv file is like this:
    Manufacturer,carline name,displ,cyl,fuel,(miles),Class
    CHEVROLET,CAVALIER (natural gas),2.2,4,CNG,120,SUBCOMPACT CARS
    HONDA,CIVIC GX (natural gas),1.6,4,CNG,190,SUBCOMPACT CARS
    FORD,CONTOUR (natural gas),2,4,CNG,70,COMPACT
    FORD,CROWN VICTORIA (natural gas),4.6,8,CNG,140/210*,LARGE CARS
    FORD,F150 PICKUP (natural gas) - 2WD,5.4,8,CNG,130,STANDARD PICKUP TRUCKS 2WD
    FORD,F250 PICKUP (natural gas) - 2WD,5.4,8,CNG,160,STANDARD PICKUP TRUCKS 2WD
    FORD,F250 PICKUP (natural gas) - 2WD,5.4,8,CNG,150/210*,STANDARD PICKUP TRUCKS 2WD
    FORD,F150 PICKUP (natural gas) - 4WD,5.4,8,CNG,130,STANDARD PICKUP TRUCKS 4WD
    FORD,F250 PICKUP (natural gas) - 4WD,5.4,8,CNG,160,STANDARD PICKUP TRUCKS 4WD
    FORD,E250 ECONOLINE (natural gas) - 2WD,5.4,8,CNG,170,"VANS, CARGO TYPE"
    FORD,E250 ECONOLINE (natural gas) - 2WD,5.4,8,CNG,80,"VANS, CARGO TYPE"
    FORD,F150 LPG - 2WD,5.4,8,LPG,290/370*,STANDARD PICKUP TRUCKS 2WD
    FORD,F250 LPG - 2WD,5.4,8,LPG,260/290/370**,STANDARD PICKUP TRUCKS 2WD
    ok, so do i need to write a file carsclass.java or is the line:
    ArrayList<CarsClass> carsClass = new ArrayList<CarsClass>(" write all fields");
    going to define my carsclass objects? how do i write my fields for each of the 7 categories?
    i believe i can easily add to and print the arraylist, but i'm confused how to go about creating this arraylist in the first place. do i just create carclass.java and save them all as strings? i guess my question is mainly how should i structure this? any suggestions/help is appreciated.
    Edited by: scottc on Nov 15, 2007 5:55 PM

    String.split uses regular expressions.Ahh yeah ummm (slaps forehead) I'd forgotten that... so maybe StringTokeniser is more accessible for noob's. Sorry.
    Anyway... if all you want/need to so is store a bunch of String field values then how about using an array of String's instead of individual fields... maybe something like:
    forums\Car.java
    * Car Data Transfer Object. All fields are final, making objects of this class
    * thread safe(r).
    * @author keith
    package forums;
    import krc.utilz.stringz.Arrayz;
    public class Car
      // class attributes                       // variables //isn't actually wrong, it's just not quit right.
      private final String[] fields;            // final means values are write once, read many times, which is thread safe(r).
       * Initialises the new Cars fields to the given fields array.
       * @param fields - an array of any (reasonable) length
      public Car(String[] fields) {             // no need to comment a constructor as a constructor.
        this.fields = fields;                   // much better to provide javadoc comments explaining
      }                                         // what the method does and how to use it.
       * Returns this Car's fields as one long string.
      public String toString() {                // It's actually GOOD to be a lazy programmer.
        return Arrayz.join(", ", this.fields);  // I have reused my Arrayz.join in several projects.
                                                // I think you can use Array.toString (new in 1.6) instead.
    krc\utilz\stringz\Arrayz.java
    package krc.utilz.stringz;
    import java.util.List;
    import java.util.ArrayList;
    public class Arrayz
        * returns true if the given value is in the args list, else false.
        * @param value - the value to seek
        * @param args... - variable number of String arguments to look in
      public static boolean in(String value, String... args) {
        for(String a : args) if(value.equals(a)) return true;
        return false;
        * append the elements of array into one string, seperated by FS
        * @param a  - an array of strings to join together
        * @param FS - Field Seperator string, optional default=" "
        * @example
        *  String[] array = {"Bob","The","Builder"};
        *  System.out.println(join(array);
        *  --> Bob The Builder
        *  System.out.println("String[] array = {\""+join(array, "\",\"")+"\"};");
        *  --> String[] array = {"Bob","The","Builder"};
      public static String join(String FS, String[]... arrays) {
        StringBuffer sb = new StringBuffer();
        for (String[] array : arrays)
          sb.append(join(array, FS));
        return(sb.toString());
      public static String join(String[] array) {
        return(join(array, " "));
      public static String join(String[] a, String FS) {
        if (a==null) return null;
        if (a.length==0) return "";
        StringBuffer sb = new StringBuffer(a[0]);
        for (int i=1; i<a.length; i++) {
          sb.append(FS+a);
    return sb.toString();
    * append all the elements of the given arrays into one big array
    * @param String[]... arrays - to be concatenated
    * @return String[] - one big array
    public static String[] concatenate(String[]... arrays) {
    List<String> list = new ArrayList<String>();
    for(String[] array : arrays) {
    for(String item : array) {
    list.add(item);
    return(list.toArray(new String[0]));
    I guess that Arrayz class might be a bit beyond you at the moment so don't worry too much if you can't understand the code... there are no nasty surprises in it... just cut and paste the code, change the package name, and use it (for now).

  • Reading in from File w/out path name

    Does anyone know why netbeans requires an entire path name to read from a file? I am trying to read from a file and I want the program to just look in the directory that the jar file is in to find the file to read from. I do not want the file to be IN the jar file, just inside that directory...

    As I understand it, when your code runs, it does not run relative to the folder that the jar file that contains it exists in. If you want to know where the code is running from in order to use relative path instead of absolute path, put this in your code and examine the output it generates:
    File file =new File("");
    System.out.println( file.getAbsolutePath() );
    Example: if the print out shows your code is running in:
    c:/ dir1 /dir2 / dir3
    and your file is in
    c: / dir2 /dirN / myFile.txt
    then your relative path would be:
    ../dirN/myFile.txt
    where starting from c:/ dir1 /dir2 / dir3, ../ means go one folder level "up" (to c:/ dir2 ), and dirN/ means from there, go down into the folder dirN (which would be c: / dir2 /dirN )

  • How to get rejected file absolute path location in file rejection handler

    HI,
    Right now I am working in the below scenario in SOA11G.
    1) Create a file adapter service and wire it to a BPEL process.
    2) Create a Fault-policies file where we have referred a Java Action as a Fault policy.
    3) Refer that fault-policy to the Fault-Binding file and put both the file in the same directory with composite.xml file.
    4) So when any rejection message happened with any wrong incoming file, the Java Action is getting called.
    But as per my requirement I want to get the absolute path of the incoming file in my java action, so that I can write some other logic to copy that file to some other location.
    So is there any API available to achieve this or any logic about how to get the absolute path of a rejected file at runtime.
    Regards,
    Tripathy.

    Hi Omar,
    You need to use OPEN_DATASET & READ DATASET statements to get the file from application server.
    Steps:
    Open dataset in read mode
    Read the data set and collect into internal table
    Now, convert this into XSTRING by using function module SCMS_STRING_TO_XSTRING
    After converting into XSTRING, you can use CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE to download into local system
    Please refer the below links
    Upload File from SAP Application Server using ABAP
    Application Server Program - ABAP Development - SCN Wiki
    Hope this helps you.
    Regards,
    Rama

  • Dreamweaver CS4 and PHP require_once, require, include_once, include absolute paths

    I have a question about Dreamweaver CS4's new functionality that lists required and included files in a second row below the name of the file you are currently editing. It's handy.
    I see that Dreamweaver attempts to list all the included files for a given page so that it is easier to find and edit those files.
    For example.  If I had a HTML document called index.html that linked to a CSS document called style.css, when I open index.html, Dreamweaver CS4 lists style.css in a row below index.html.
    My problem is this.  This new functionality works on absolute paths and relative paths for HTML elements. For example, it can find and link to CSS files regardless of if the src tag is relative  or absolute (/css/style.css)
    REFRESHER: absolute paths start with a "/" as in "/css/style.css" and relative paths do not start with a "/" as in "css/style.css" or "../../css/style.css"
    However, PHP files that are linked to the current page via require, require_once, include, or include_once, only appear to work if you use a relative path.
    So this would work in Dreamweaver:
    require_once('../lib/config.php');
    But this would not
    require_once('/home/matt/mydomain.com/html/lib/config.php');
    As any PHP developer knows, you are never supposed to use relative paths with included or required files.  Especially if your site has multiple levels of sub directories.  Relative paths are relative to the calling php document.  It causes a bunch of problems.  I can explain how if you want.
    How can I tell Dreamweaver that the base directory on my apache web server for my domain...
    /home/matt/mydomain.com/html/
    ... is the equivalent of the base directory on my home computer where dreamweaver accesses my files.
    C:\Users\Matt\Documents\My Websites\mydomain.com\
    So that when I write...
    require_once('/home/matt/mydomain.com/html/lib/config.php');
    ... how can I force dreamweaver understand that "/home/matt/mydomain.com/html/" is the same as "C:\Users\Matt\Documents\My Websites\mydomain.com\" on my home computer. So that way, this new Dreamweaver CS4 submenu feature can find and link to the correct file.
    Essentially, can I define Dreamweaver "include paths" for Dreamweaver to search in if the file I'm trying to include is not in the same directory?

    athensmusician wrote:
    As any PHP developer knows, you are never supposed to use relative paths with included or required files.
    Perhaps you ought to inform the PHP documentation team. All the examples in the PHP manual use relative paths.
    Essentially, can I define Dreamweaver "include paths" for Dreamweaver to search in if the file I'm trying to include is not in the same directory?
    Dreamweaver parses only relative paths in PHP includes. The Related Files feature was a new addition in Dreamweaver CS4, so it's not 100% perfect. Having the ability to define your own include_path for Dreamweaver to parse would be a useful improvement. Make your voice heard by submitting a feature request through the form at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform.

Maybe you are looking for