Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在处理文件上传脚本。我知道脚本的每个部分都是有效的,除了我要指定的路径。
我不确定路径应该相对于什么。它是否需要相对于 PHP 存储文件的临时文件夹,或者相对于我的脚本运行的位置?
另外,我不确定我需要多具体。我试图上传文件的目录是:www/mm/uploads
www/mm/uploads
它与脚本运行的位置相对。