Menu

help config

Anonymous
2004-09-09
2004-09-09
  • Anonymous

    Anonymous - 2004-09-09

    this is my genie configuration file :
    <?
       session_start();
       define("URL_ADDRESS","http://localhost/phpCodeGenie3/web");
     

       // Windows Server
       define("SITE_PATH","C:\\Program Files\\Apache Group\\Apache2\\htdocs\\phpCodeGenie3");   // no trailing slashes
       define("FILE_SEPARATOR", "\\&quot;);
       // win or nix
       define("OS_TYPE","win");
     

       define("WEB_SEPARATOR","/");
       define("APP_PATH",SITE_PATH.FILE_SEPARATOR."app");
       define("WEB_PATH",SITE_PATH.FILE_SEPARATOR."web");   
       
       // Specify the language that you want to use phpCodeGenie in
       // You can make your own language file if it does exist yet
       // and send your contribution back to phpCodeGenie
       define("LANGUAGE_FILE",APP_PATH.FILE_SEPARATOR."language".FILE_SEPARATOR."lang_english.inc.php"); 
           

       define("CONFIG_COMPONENT",APP_PATH.FILE_SEPARATOR."settings");
       define("CONFIG_FILE",CONFIG_COMPONENT.FILE_SEPARATOR."definitions.inc.php");  
       include_once(CONFIG_FILE);  

    ?>

    connexion to database is OK, but the URL generated for utilities are wrong.
    example :
    http://localhost/phpCodeGenie3/web/generators/php/utils\phpClassMakerForm.php

    there should be a "/" instead of "\&quot;

    thx for help
    JFM

     
    • Nilesh Dosooye

      Nilesh Dosooye - 2004-09-09

      Hi JFM,

      your config file looks ok and it should not have generated that url.. i dont really know why its building this kind of url... try adding a / at the end of your URL_ADDRESS constant..

      Thanks,
      Nilesh

       
    • Anonymous

      Anonymous - 2004-09-09

      not better :
      got http://localhost/phpCodeGenie3/web//generators/php/utils\phpClassMakerForm.php
      ****
      WEB_PATH is OK
      FILE_SEPARATOR is OK

      imho there is a mix between SITE_PATH.FILE_SEPARATOR and APP_PATH.FILE_SEPARATOR near "utils"

      could you tell me which file I should look ?
      where is this url generated ?

      thx
      JFM

       
      • Nilesh Dosooye

        Nilesh Dosooye - 2004-09-09

        That URL is being generated in app/settings/pageConstants.inc.php and you are very right... i have used FILE_SEPARATOR instead of WEB_SEPARATOR just for that plugin... phpClassMakerForm.php... Its weird that it works fine on my apache both windows and unix.. maybe apache rewrites the \ to /... anyway to fix it just change the pageConstants.inc.php where the PAGE_PHP_CLASS_MAKER_FORM are defined from FILE_SEPARATOR to WEB_SEPARATOR.

        Thanks for finding the bug.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.