How can I determine the maximum filename length on a linux box?
Preferred in PHP programming language.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You want
pathconforfpathconf, which are not exposed (yet) in PHP. (When they are, they’ll probably beposix_pathconf.)You may also shell out to
getconf, a command-line utility interface to the same functionality. Try this on your system:$ getconf NAME_MAX /tmp$ getconf PATH_MAX /tmp