?
Solved

how to download a files on a web site with php

Posted on 2014-12-30
2
Medium Priority
?
86 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 2000 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

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

593 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