KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
file_put_contents('image.jpg',file_get_contents('http://static.adzerk.net/Advertisers/12f0cc69cd9742faa9c8ee0f7b0d210e.jpg')); Saving the file in current folder is working ok, but if I try file_put_contents('/subfolder/image.jpg',file_get_contents('http://static.adzerk.net/Advertisers/12f0cc69cd9742faa9c8ee0f7b0d210e.jpg')); I have an error: failed to open stream: No such file or directory in […] Why does this error occur? How can I save the file in a subfolder?
Tags (comma-separated)
Save Edits
Cancel