Directory Problem

Last post 04-01-2008, 7:30 PM by Karen. 2 replies.
Sort Posts: Previous Next
  •  03-27-2008, 4:19 PM 38407

    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.

  •  03-28-2008, 2:57 AM 38417 in reply to 38407

    Re: Directory Problem

    fmourioux,
     
    Please run the following code agaian your server:
     

    <?php

    // Show all information, defaults to INFO_ALL
    phpinfo();


    ?>

    And make sure you set DOCUMENT_ROOT   correctly.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML