windows7中的examplep存在长目录名问题


xampp in windows 7 has problems with long directory names

我在windows 7下使用xampp,重命名()时遇到问题;当目录超过69个字符时,当我在我的linux godaddy帐户上尝试这个时,它似乎可以工作。

为什么我在使用xampp的apachephp时在windows中遇到问题?我该怎么解决这个问题?

rename('../../../../../myFolder_small/American_Craft/Drawn_from_Clay_story_Deborah_Bishop_photo_Paul_Scala_American_Craft_/Drawn from Clay_story Deborah Bishop_photo Paul Scala 2_American Craft june july 10.jpg', '../../../../../myFolder_small/American_Craft/Drawn_from_Clay_story_Deborah_Bishop_photo_Paul_Scala_American_Craft_/81f8b1e81a29b9c6f997b2d869e5f6d8b461c32d.jpg');

如果文件名的绝对路径超过260个字符(源),Windows将不允许您命名文件。根据你的例子,这可能是个问题。