failed to open stream: HTTP wrapper does not support writeable connections

前端 未结 3 1432
小蘑菇
小蘑菇 2020-11-28 07:50

I have uploaded my localhost files to my website but it is showing me this error:-

: [2] file_put_contents( ***WebsiteURL*** /cache/lang/ ***FileName*** .php         


        
3条回答
  •  心在旅途
    2020-11-28 08:21

    Instead of doing file_put_contents(***WebSiteURL***...) you need to use the server path to /cache/lang/file.php (e.g. /home/content/site/folders/filename.php).

    You cannot open a file over HTTP and expect it to be written. Instead you need to open it using the local path.

提交回复
热议问题