FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ? [message #184018 is a reply to message #184016] Mon, 02 December 2013 17:31 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Mon, 02 Dec 2013 09:21:12 -0800, zhangfj wrote:

> Can I download file with address like this
> "http://***.com/file.php/ABC.html" automatically ?
> I mean not manually.
> I can download the file in these kind address, manually. There is a
> button in the web page, and the web url change to
> "http://***.com/down.php" once the button is clicked.
>
> I have no idea about download it through programming.(Thus they may be
> downloaded automatically.)
> Is that possible ?
>
> Any comment is appreciated. Thanks in advance.

As you asked the question in a php newsgroup, I assume you wish to use php
code to retrieve The term you need to google may be "php curl".

However, as a simpler interface, if the php configuration allows it, you
can also use a url as a filename to open a file. What you then do with
the data you receive by reading from the file handle is up to you.

This of course assumes that you know the url that you want to retrieve.

If you're not using php to do the automatic download, you're asking in
the wrong place. How "automatic" do you wish it to be? If you want it to
happen every minute / hour / day / week etc you may wish to look up the
scheduling mechanism on your system (usually cron on a linux/unix etc
box, but I have no idea what you're actually using).

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: foreach as list
Next Topic: illegal offset problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 07:12:04 GMT 2024

Total time taken to generate the page: 0.04832 seconds