|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-17 13:30 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Mar 28 18:00:01 2026 UTC |
Description: ------------ Hi there: In *WINDOWS*, function include fail when i try : include("include\test2.php"); but works with : (take note on \ and / symbol) include("include/test2.php"); include("include\\test2.php"); This error started when i installed the latest version. I don't sure if the use of folder\file is a bad practice or not but i don't find this change on the documentation. Reproduce code: --------------- file test.php <?php include("include\test2.php"); ?> file test2 on folder include <? echo "include!!\n"; ?> Expected result: ---------------- include!! Actual result: -------------- [17-Nov-2007 09:56:35] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'include est2.php' for inclusion (include_path='.;C:\php5\pear') in C:\ats\fum\test.php on line 2