| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2000-08-31 09:02 UTC] stas@php.net
  [2000-11-04 06:34 UTC] waldschrott@php.net
  [2001-01-08 15:40 UTC] cynic@php.net
  [2001-05-06 15:12 UTC] zeev@php.net
  [2001-05-28 00:29 UTC] sniper@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 12:00:01 2025 UTC | 
if I?m calling a file "FooBar.php", echo __FILE__; will output "foobar.php". Although w32 allows files only in-sensitive (no FooBar.php and foobar.php concurrently) it saves the case information and thus __FILE__ (and related) should contain this cased information too. This will bug will also cause scripts not to be platform independend: // filename lowercased $filename=basename(__FILE__); // HTTP REQUEST, w cased filename $fullpage=substr($tmp=strtolower(getenv('SERVER_PROTOCOL')),0,strpos($tmp,'/')).'://'.getenv('HTTP_HOST').getenv('REQUEST_URI'); $pageonly=substr($fullpage,0,strpos($fullpage,$filename)+strlen($filename)); hile this script should work on *nix calling "foobar.php" it does not on w32