|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-10-10 07:57 UTC] administrator dot bau at josephinum dot at
Description:
------------
Windows 2003 SP2 / IIS 6.0 / PHP 5.2.4
Anonymous Auth OFF
Basic Auth,NTLM Auth ON
With a Higher Right User(Admin) file_exsists Work Correctly, but with a Lower Right User file_exists Return False but the HTML File get Included.
So it the File must be Checkable if Exists
I tripplecheck since 4 Days the Security Settings, also trying to figure it out with NT Filemon for Accses Denieds
Find this Error(Is it a Bug?) by try to Securing :-) an Typo3 Website with NTLM and SSL for Internal Authentification
This Error Stops Typo3 from loading External Files, because of @is_File = False
Reproduce code:
---------------
<?php
$file='fileadmin/template/main.html';
clearstatcache();
if (@is_File("".$file)) {
echo ('File Exists:'.$file);
}else{
echo('File ERROR:'.$file);
}
include_once($file);
echo('Loaded');
?>
Expected result:
----------------
File Exists:fileadmin/template/main.html
<The HTML Code>
Loaded
Actual result:
--------------
File Error:fileadmin/template/main.html
<The HTML Code>
Loaded
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 02:00:01 2025 UTC |
Edit some of the Sample Code from and PHP irc chanel for testing purpose <?php $file='fileadmin/template/loadme.html'; ini_set("include_path", "/fileadmin/template"); clearstatcache(); if (is_File($file)) { echo ('File Exists:'.$file.'<br>'); }else{ echo('File ERROR:'.$file.'<br>'); } include_once($file); echo('<br>Loaded at'.date("r")); ?>OK i it works now! Folder A Webrootfolder index.php < where the Script is fileadmin Template main.html The "Folder A" (Parent Folder of Root folder!!!) need Directory Listing Rights for the User how Connect on IIS Is this an ISAPI oder IIS Bug? Or iam a dumb man??