hello.
i'm trying to build a simple script to download the latest uploaded files from a site.
Ex. Instead of visiting a web site and click on the link to download the file, i just run the script.
Can someone give a few tips or pseudo code?
thanks.
download file from hyperlink
Moderator: General Moderators
-
mcog_esteban
- Forum Contributor
- Posts: 127
- Joined: Tue Dec 30, 2003 3:28 pm
- andym01480
- Forum Contributor
- Posts: 390
- Joined: Wed Apr 19, 2006 5:01 pm
How about...
That would put the contents of urlwanted into the variable $output without outputting it to your browser. You can then write it to a file or process it as wanted
Code: Select all
ob_start();
include ("urlwanted");
$output = ob_get_contents();
ob_end_clean();-
mcog_esteban
- Forum Contributor
- Posts: 127
- Joined: Tue Dec 30, 2003 3:28 pm