Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 84
  • Last Modified:

how to download a files on a web site with php

hi

I want to download a file with curl but it does not work you have another solution

ty
0
Gaaara
Asked:
Gaaara
1 Solution
 
hexo darkCommented:
$files = file_get_contents('http://website.com/files.zip');
file_put_contents('files.zip', $files);
0
 
GaaaraAuthor Commented:
good it works
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now