Home > Backend Development > PHP Tutorial > 关于thinkphp下file_put_contents执行不了有关问题

关于thinkphp下file_put_contents执行不了有关问题

WBOY
Release: 2016-06-13 12:01:16
Original
1045 people have browsed it

关于thinkphp下file_put_contents执行不了问题

<br />$img=file_get_contents("http://img04.taobaocdn.com/bao/uploaded/i4/T1NlTRFLtcXXXXXXXX_!!0-item_pic.jpg");<br />[email&#160;protected]_put_contents('1.jpg',$img);<br />
Copy after login

这段代码放在thinkphp的模块代码下执行不了这是怎么回事啊  file_put_contents这个函数没作用这是为什么呢?
------解决方案--------------------
你是怎么调用?是写的action方法?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template