Solved

how to download a files on a web site with php

Posted on 2014-12-30
2
68 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
This article discusses how to create an extensible mechanism for linked drop downs.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now