gpt4 book ai didi

php - 无法打开流 : HTTP wrapper does not support writeable connections

转载 作者:IT老高 更新时间:2023-10-28 11:57:05 27 4
gpt4 key购买 nike

我已将本地主机文件上传到我的网站,但它显示此错误:-

: [2] file_put_contents( ***WebsiteURL*** /cache/lang/ ***FileName*** .php) 
[function.file-put-contents]: failed to open stream: HTTP wrapper does
not support writeable connections | LINE: 127 | FILE: /home/content/
***Folders\FileName*** .php

我个人认为内容保存在缓存文件夹中的文件中,当我将文件上传到我的 Web 服务器时,它正试图访问缓存的 localhost 文件夹。

最佳答案

您需要使用 /cache/lang/file.php 的服务器路径而不是执行 file_put_contents(***WebSiteURL***...) (例如 /home/content/site/folders/filename.php).

您不能通过 HTTP 打开文件并期望它被写入。相反,您需要使用本地路径打开它。

关于php - 无法打开流 : HTTP wrapper does not support writeable connections,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9748076/

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