Solved

how to download a files on a web site with php

Posted on 2014-12-30
2
75 Views
Last Modified: 2014-12-30
hi

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

ty
0
Comment
Question by:Gaaara
2 Comments
 
LVL 2

Accepted Solution

by:
hexo dark earned 500 total points
ID: 40524714
$files = file_get_contents('http://website.com/files.zip');
file_put_contents('files.zip', $files);
0
 

Author Closing Comment

by:Gaaara
ID: 40524739
good it works
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question