xampp 上上传文件路径名中存在反斜杠的奇怪情况 +蛋糕

发布于 2024-09-18 20:39:47 字数 63 浏览 3 评论 0原文

Windows 7 上的 XAMPP + Cake 安装会导致一个奇怪的问题,即在上传文件的路径名中引入反斜杠。

XAMPP + Cake installation on Windows 7 causes the curious problem of introducing backslashes in pathnames of uploaded files.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

网白 2024-09-25 20:39:56

是否需要定义目录分隔符?从 webroot/index.php 看到这个:

/**
 * Use the DS to separate the directories in other defines
 */
    if (!defined('DS')) {
        define('DS', '/');//DIRECTORY_SEPARATOR);

}

/**

Is it a case of needing to define the directory separator? See this from webroot/index.php:

/**
 * Use the DS to separate the directories in other defines
 */
    if (!defined('DS')) {
        define('DS', '/');//DIRECTORY_SEPARATOR);

}

/**

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文