Directory Problem

  •  03-27-2008, 4:19 PM

    Directory Problem

    Hi,

    I have a pb with when inserting the component with our web application. So The support tells me to create a simple web projet just with this files :

    I put all the zip package in the root web folder called : CuteEditor. The include file "include_CuteEditor.php" is in CuteEditor/CuteEditor_FIles.

    In a test directory in the root folder, I put index.php file with this content :

    "
    <?php
    include_once("../CuteEditor/CuteEditor_Files/include_CuteEditor.php") ;
    $editor=new CuteEditor();
    $editor->ID="Editor1";
    $editor->Text="Type here";
    $editor->EditorBodyStyle="font:normal 12px arial;";
    $editor->EditorWysiwygModeCss="php.css";
    $editor->FilesPath="../CuteEditor/CuteEditor_Files";
    $editor->Draw();
    $editor=null;
    //use $_POST["Editor1"]to catch the data
    ?>

    In this configuration, it works. But with "/CuteEditor/CuteEditor_File". The same with the real full diskPath. It doesn't, why ?

    In my real developement, I can't spécify a relative path because my url can change, I am using symfony and we have different langues and environnements.

    First question is : "Is FilePath an url Path or a diskPath ?". 

    If it is an urlPath why it doesn't work with / and if it is a diskPath why if doesn't work with a full diskPath ?

    Fabien.

View Complete Thread