即使正在使用会话,文件名也与数据库中存在的文件名不同

发布于 2024-07-13 04:07:04 字数 479 浏览 5 评论 0原文

我使用 PHP 将文件名的一部分保存为 session_id,如下所示: 然后,

$newFileName = 'upload_160687_'.session_id().'_160687_'.$originalFileName;

我在数据库中使用 PHP 将文件名保存为字符串,它看起来像这样:

upload_160687_l4eef6nqlekhbirv2pvmuf5660_160687_Apple_Microsoft_desktop1-1.jpg

但是,当我查看文件系统时,同一个文件是另存为:

upload_160687_41d99tblerr1tr6qq3n854jt05_160687_Apple_Microsoft_desktop1-1.jpg

你可以看到差异,但到底是什么原因???

感谢您的任何帮助!

I save a file with part of the filename as the session_id using PHP, like this:

$newFileName = 'upload_160687_'.session_id().'_160687_'.$originalFileName;

I then save the filename as a string using PHP in the DB and it looks like this:

upload_160687_l4eef6nqlekhbirv2pvmuf5660_160687_Apple_Microsoft_desktop1-1.jpg

However, when I look in the filesystem, that same file is saved as :

upload_160687_41d99tblerr1tr6qq3n854jt05_160687_Apple_Microsoft_desktop1-1.jpg

You can see the difference, but what the hell is the reason????

Thank you for any help!

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

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

发布评论

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

评论(1

別甾虛僞 2024-07-20 04:07:04

我们可以确认吗? 关闭问题并将其标记为由于其单个共享进程而导致的 FireFox session_id 怪癖?

Can we confirm & close the question and mark it up to the FireFox session_id quirks due to its single shared process?

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