即使正在使用会话,文件名也与数据库中存在的文件名不同
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们可以确认吗? 关闭问题并将其标记为由于其单个共享进程而导致的 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?