Page 1 of 1

file path

Posted: Wed Jul 25, 2007 8:29 am
by m2babaey
Hi
the problem of intermal error was solved. it was because i haddn't changed/replaced the htaccess file. Also I found the error log file. now because of the file path i'm having problem. I tried what i guess that may work but none of them worked. the error for this problem has been reported like this:
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] Filename is not valid: f:/program files/easyphp/www/<
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] File does not exist: f:/program files/easyphp/www/' . dir_ws_images . 'arrow_grey.gif
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] Filename is not valid: f:/program files/easyphp/www/<
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] Filename is not valid: f:/program files/easyphp/www/<
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] Filename is not valid: f:/program files/easyphp/www/<
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] Filename is not valid: f:/program files/easyphp/www/<
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] Filename is not valid: f:/program files/easyphp/www/<
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] Filename is not valid: f:/program files/easyphp/www/<
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] Filename is not valid: f:/program files/easyphp/www/<
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] Filename is not valid: f:/program files/easyphp/www/<
[Wed Jul 25 16:40:40 2007] [error] [client 127.0.0.1] Filename is not valid: f:/program files/easyphp/www/<
I guess i should change the line 21 of the code below:
(line 21: define('DIR_FS_DOCUMENT_ROOT', '/home/hotique/public_html/'); // or /home/user/html_files/ )
code:

Posted: Wed Jul 25, 2007 8:33 am
by miro_igov
8O excuse me but do you not see how the color of the code changes in the bottom of the code you posted? Do you not asked yourself why?

Maybe quotes not closed?

how about $adminemail="higi@tg.ko define('HTTP_SERVER', 'http://127.0.0.1/hotel');

Posted: Wed Jul 25, 2007 8:55 am
by m2babaey
i had a long story last night and today. you may not have time to read it now. finally it comes in:
the emails, db_user, password and db_name had been removed by me
the quote has been removed accidentally when writing the post,
the code should be like this: (a suggestion for line 21)

Code: Select all

<?php

// Define the webserver and path parameters
// DIR_FS_* = Filesystem directories (local/physical)
// DIR_WS_* = Webserver directories (virtual/URL)

 define('HTTP_SERVER', 'http://127.0.0.1/hotel');

  // WS config
  define('DIR_INSTALL', '/');
  define('DIR_WS_WEBSITE', HTTP_SERVER . '/'); // absolute path required
  define('DIR_WS_IMAGES',  DIR_WS_WEBSITE . 'images/');
  define('DIR_WS_IMAGES_APT',  DIR_WS_WEBSITE . 'images/apimages/');
  define('DIR_WS_INCLUDES', DIR_WS_WEBSITE . 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

  // FS config
  define('DIR_FS_DOCUMENT_ROOT', 'http://127.0.0.1/'); // or /home/user/html_files/

//define('DIR_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['DOCUMENT_ROOT'].'/'); // or /home/user/html_files/

  define('DIR_FS_HOME', DIR_FS_DOCUMENT_ROOT . '');
  define('DIR_FS_INCLUDES', DIR_FS_HOME . 'includes/');
  define('DIR_FS_IMAGES', DIR_FS_HOME . 'images/');
  define('DIR_FS_IMAGES_APARTMENTS', DIR_FS_IMAGES . 'apimages/');
  define('DIR_FS_CACHE', DIR_FS_HOME . 'cache/');
  define('DIR_FS_FUNCTIONS', DIR_FS_INCLUDES . 'functions/');
  define('DIR_FS_CLASSES', DIR_FS_INCLUDES . 'classes/');
  define('DIR_FS_MODULES', DIR_FS_INCLUDES . 'modules/');
  define('DIR_FS_LANGUAGES', DIR_FS_INCLUDES . 'languages/');

  define('DIR_FS_CACHE_CITIES', DIR_FS_DOCUMENT_ROOT . 'css/');
  define('DIR_FS_IMAGEMAGICK', '/usr/bin/'); // /usr/local/bin/ on unix


// DB connection
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'user');
  define('DB_SERVER_PASSWORD', 'pass');
  define('DB_DATABASE', 'db');
  define('USE_PCONNECT', 'false'); // use persistent connections?

 $adminemail="email";
 define('ADMIN_EMAIL','email');
?>

Posted: Wed Jul 25, 2007 9:04 am
by superdezign
Are you sure the problem is even in that file? Is there anywhere where you accidentally put a '<' after the root?

Posted: Wed Jul 25, 2007 9:41 am
by m2babaey
i don't say i am sure.
the the site was working on the host and i downloaded the source code with no change.
now cosidering the problem in including files, it should be this file that defines path

Posted: Wed Jul 25, 2007 10:31 am
by miro_igov
DIR_FS_DOCUMENT_ROOT must be the File System root directory, not the URL.

Usually in osC FS in the constant name means file system, WS - web server.