gpt4 book ai didi

php - 检索 tmpfile() 的路径

转载 作者:IT老高 更新时间:2023-10-28 12:07:41 26 4
gpt4 key购买 nike

快点……

有没有办法检索由 tmpfile() 创建的文件的路径?

或者我需要自己用 tempnam() 做吗?

最佳答案

好像stream_get_meta_data()也有效:

$tmpHandle = tmpfile();
$metaDatas = stream_get_meta_data($tmpHandle);
$tmpFilename = $metaDatas['uri'];
fclose($tmpHandle);

关于php - 检索 tmpfile() 的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11212569/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com