JipThePeople Posted October 11, 2010 Share Posted October 11, 2010 I am running php 5.3.2 on Win Server 2008 R2 (IIS 7). When I execute the mkdir() function and pass it a string (i.e., the path) longer than 256 characters, it throws an error indicating "result too large". My question is whether this is because the mkdir() function cannot handle a string larger than 256 char or if it is a Windows issue on max characters allowed (path length). Any feedback or recommendations will be appreciated. Link to comment https://forums.phpfreaks.com/topic/215647-mkdir-function/ Share on other sites More sharing options...
AbraCadaver Posted October 11, 2010 Share Posted October 11, 2010 The windows MAX_PATH is 260 characters. This includes the drive letter, colon, slash and the terminating null character. Link to comment https://forums.phpfreaks.com/topic/215647-mkdir-function/#findComment-1121241 Share on other sites More sharing options...
JipThePeople Posted October 11, 2010 Author Share Posted October 11, 2010 Thx for the reply and the information. Link to comment https://forums.phpfreaks.com/topic/215647-mkdir-function/#findComment-1121248 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.