|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1999-04-05 14:22 UTC] mnc at nih dot gov
$fp = fopen("\\server\share\file.txt");
fails, apparently because the doubled slash is removed by line 139 in fopen_wrappers.c prior to path validation.
For this reason, escaping the path using a syntax such as "\\\\server\\share\\file.txt" can not work.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jul 03 17:00:02 2026 UTC |
The backslash is the escape character of PHP3. You should write it as fopen("\\\\server\\share\\file.txt"); -- Ok, patch is in CVS, change will appear in PHP 3.0.8.