Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- WGET to download file


alphacooler - 7:21 pm on Jan 2, 2007 (gmt 0)


Here is a script I found to download files using the commandline and WGET. But unfortunately the comments of the orig programmer aren't quite enough for me to understand.

Here is the script:

[URL="http://www.zend.com/tips/tips.php?id=91&single=1"]http://www.zend.com/tips/tips.php?id=91&single=1[/URL]

I know where the path to wget on my server (/usr/bin/wget), but i'm not sure what to put in the following:

[LIST]

  • $destination-path
  • $url (url of file I want to d/l presumably)
  • /path-to-outfile/output
  • $temp = `/path-to-cat/cat /path-to-outfile/output`;
    [/LIST]

    I guess I am not sure of the "format" I need to enter for these vars.

    Perhaps a dummy example would be of help.

    Thanks so much.


    Thread source:: http://www.webmasterworld.com/php/3206080.htm
    Brought to you by WebmasterWorld: http://www.webmasterworld.com