<tfoot id='nZVzf'></tfoot>

        <small id='nZVzf'></small><noframes id='nZVzf'>

        <legend id='nZVzf'><style id='nZVzf'><dir id='nZVzf'><q id='nZVzf'></q></dir></style></legend>
        <i id='nZVzf'><tr id='nZVzf'><dt id='nZVzf'><q id='nZVzf'><span id='nZVzf'><b id='nZVzf'><form id='nZVzf'><ins id='nZVzf'></ins><ul id='nZVzf'></ul><sub id='nZVzf'></sub></form><legend id='nZVzf'></legend><bdo id='nZVzf'><pre id='nZVzf'><center id='nZVzf'></center></pre></bdo></b><th id='nZVzf'></th></span></q></dt></tr></i><div id='nZVzf'><tfoot id='nZVzf'></tfoot><dl id='nZVzf'><fieldset id='nZVzf'></fieldset></dl></div>
          <bdo id='nZVzf'></bdo><ul id='nZVzf'></ul>
      1. 上传文件 PHP 时生成唯一文件名的最佳方法

        Best method to generate unique filenames when uploading files PHP(上传文件 PHP 时生成唯一文件名的最佳方法)

              <tbody id='CcxoJ'></tbody>
            <legend id='CcxoJ'><style id='CcxoJ'><dir id='CcxoJ'><q id='CcxoJ'></q></dir></style></legend>
          • <small id='CcxoJ'></small><noframes id='CcxoJ'>

              • <i id='CcxoJ'><tr id='CcxoJ'><dt id='CcxoJ'><q id='CcxoJ'><span id='CcxoJ'><b id='CcxoJ'><form id='CcxoJ'><ins id='CcxoJ'></ins><ul id='CcxoJ'></ul><sub id='CcxoJ'></sub></form><legend id='CcxoJ'></legend><bdo id='CcxoJ'><pre id='CcxoJ'><center id='CcxoJ'></center></pre></bdo></b><th id='CcxoJ'></th></span></q></dt></tr></i><div id='CcxoJ'><tfoot id='CcxoJ'></tfoot><dl id='CcxoJ'><fieldset id='CcxoJ'></fieldset></dl></div>
                <tfoot id='CcxoJ'></tfoot>

                • <bdo id='CcxoJ'></bdo><ul id='CcxoJ'></ul>
                  本文介绍了上传文件 PHP 时生成唯一文件名的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  任何人都可以建议为文件上传生成唯一文件名以避免重复的最佳做法参赛作品?

                  Can any one suggest the best practice to generate unique file names for file uploads to avoid duplicate Entries?

                  提前致谢.

                  推荐答案

                  我通常要么使用 uniqid() 函数为文件名创建一个 UID,要么使用上传文件的用户名创建一个文件夹并保留原始文件文件名.第一个的缺点是您必须将原始文件名保存在某个地方才能显示给用户.

                  I usually either create a UID using uniqid() function for the filename or create a folder with the name of the username who is uploading the file and leave the original filename. The disadvantage of the first one is that you will have to save the original filename somewhere to show to the user.

                  这篇关于上传文件 PHP 时生成唯一文件名的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  PHP Upload File Validation(PHP 上传文件验证)
                  PHP Error - Uploading a file(PHP 错误 - 上传文件)
                  How can I write tests for file upload in PHP?(如何在 PHP 中编写文件上传测试?)
                  php resizing image on upload rotates the image when i don#39;t want it to(php在上传时调整图像大小会在我不想要它时旋转图像)
                  How to send additional data using PLupload?(如何使用 PLupload 发送附加数据?)
                  change button text in js/ajax after mp4 =gt;mp3 conversion in php(在 php 中的 mp4 =gt;mp3 转换后更改 js/ajax 中的按钮文本)

                      <bdo id='Xwu8z'></bdo><ul id='Xwu8z'></ul>
                      <tfoot id='Xwu8z'></tfoot>
                    • <small id='Xwu8z'></small><noframes id='Xwu8z'>

                        <legend id='Xwu8z'><style id='Xwu8z'><dir id='Xwu8z'><q id='Xwu8z'></q></dir></style></legend>
                        <i id='Xwu8z'><tr id='Xwu8z'><dt id='Xwu8z'><q id='Xwu8z'><span id='Xwu8z'><b id='Xwu8z'><form id='Xwu8z'><ins id='Xwu8z'></ins><ul id='Xwu8z'></ul><sub id='Xwu8z'></sub></form><legend id='Xwu8z'></legend><bdo id='Xwu8z'><pre id='Xwu8z'><center id='Xwu8z'></center></pre></bdo></b><th id='Xwu8z'></th></span></q></dt></tr></i><div id='Xwu8z'><tfoot id='Xwu8z'></tfoot><dl id='Xwu8z'><fieldset id='Xwu8z'></fieldset></dl></div>

                            <tbody id='Xwu8z'></tbody>