dtjzpg5313 2009-01-22 21:08
浏览 26
已采纳

即使正在使用会话,文件名也不同于DB中存在的文件名

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!

  • 写回答

1条回答 默认 最新

  • duan198299 2009-01-31 04:04
    关注

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号