Ignore:
Timestamp:
2008/08/29 23:40:45 (18 years ago)
Author:
Seasoft
Message:

HTML_PATH の生成を Windows 版 PHP の一部バージョンの不具合に対応する試み。
 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=2104&forum=1&viewmode=flat&order=ASC&start=20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/html/require.php

    r17578 r17586  
    2222 */ 
    2323 
    24 $require_php_dir = realpath(dirname( __FILE__)) . '/'; 
    25  
    26 if (!defined("HTML_PATH")) { 
    27     define("HTML_PATH", realpath($require_php_dir) . '/'); 
    28 } 
     24// rtrim は PHP バージョン依存対策 
     25define("HTML_PATH", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'); 
     26echo HTML_PATH; 
    2927 
    3028require_once(HTML_PATH . "define.php"); 
Note: See TracChangeset for help on using the changeset viewer.