Posted by Chris F.A. Johnson on 10/03/06 23:23
On 2006-09-30, patrick j wrote:
> Hi
>
> I'm wondering if there is a limit on the number of characters in a
> filename for use in a web-site?
>
> I used to do web-site creation on an amateur basis using the classic
> Mac OS and on that there was a limit of the number of characters in the
> filename so the issue never arose.
>
> However now I'm using OS X I have found myself creating quite long
> filenames.
>
> Should I be concerned about this?
Unix systems (which most web servers run on) usually have a
maximum length for filenames defined by the NAME_MAX macro. A
typical value is 255. There is also the PATH_MAX macro, typically
4095, which is the maximum length for the entire path to a file.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
[Back to original message]
|