How to determine the maximum length of a file name in a linux field?
Preferred PHP programming language.
You want pathconforfpathconf , which are not yet displayed (in PHP). (When they will, they are likely to be posix_pathconf.)
pathconf
fpathconf
posix_pathconf
You can also use a command line interface with the same functionality. Try this on your system: getconf
getconf
$ getconf NAME_MAX /tmp
$ getconf PATH_MAX /tmp
there is no need to define it programmatically. it's 255 bytes.
edit: (, reiser), 255, Linux.
Linux - 255. , , , Linux. , . .
, realpath(). , , :
< > $MaxLen = 264-STRLEN (Realpath ( 'index.php')));
264 - 255 ( lim) + 9 ('index.php' len). , .
You can use the constant PHP_MAXPATHLEN
Source: https://habr.com/ru/post/1713459/More articles:LINQ Dynamic Expression API, predicate with DBNull.Value matching - dynamicWPF Добавление всплывающей подсказки на дорожку слайдера - wpfASP.net - Query-String Caching (VaryByParam) - query-stringArc based gradient - c #How to filter deployed code when exporting EAR from eclipse? - eclipseDiscussions about IIS6 Wildcard Issues? - asp.netWhy does the child control of the child update panel update both the parent and the child, if each of them is set to conditional? - ajaxHow to include external libraries in an open source project? - c #How to get height of horizontal scrollbar in ListView - c #Returning other objects to init - initializationAll Articles