Catfish Posted July 8, 2008 Share Posted July 8, 2008 Hi all, I've made a script that handles files and moves them about and what not. I've run into a problem and its the only thing wrong with my script. The file_exists() function doesn't like to work correctly with filenames that are rather long. I don't know the limit of the number of characters exactly but I'd guess its around the 255 or 320 mark or something from what i know about filenaming and file system limitations. I think my PHP version is 5.2.3, that's the installer file's version number anyway. It's a Win32 installation. file_exists() is returning FALSE to files that absolutely do exist but have long filenames. Is there some workaround to this bug or an update i can apply? PS: If you can help, you can email replies to catfish AT beardeddonkey DOT com as I don't get online often and checking my email would be easier than finding this thread at the forum (although I will subscribe to this thread so feel free to reply here too) Link to comment https://forums.phpfreaks.com/topic/113661-file_exists-long-filename-bug/ Share on other sites More sharing options...
kenrbnsn Posted July 8, 2008 Share Posted July 8, 2008 Please show us your code. Post in the forum, receive replies in the forum. That's what it's here for -- to share problems/solutions. Ken Link to comment https://forums.phpfreaks.com/topic/113661-file_exists-long-filename-bug/#findComment-584099 Share on other sites More sharing options...
PFMaBiSmAd Posted July 8, 2008 Share Posted July 8, 2008 This is an operating system limitation, not a php problem - http://windowshelp.microsoft.com/Windows/en-US/help/5bc67cea-5901-4563-b800-16af596dffb61033.mspx#EIC Link to comment https://forums.phpfreaks.com/topic/113661-file_exists-long-filename-bug/#findComment-584103 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.