Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 03-08-2005, 11:36 AM download code
FutileSoul's Avatar
Ultra Talker

Posts: 383
Location: Michigan
Trades: 0
does anyone know how to write code to download something off a site?
__________________

Please login or register to view this content. Registration is FREE
- The Congregation of Man
FutileSoul is offline
Reply With Quote
View Public Profile Visit FutileSoul's homepage!
 
 
Register now for full access!
Old 03-08-2005, 11:42 AM
Unknown.

Posts: 1,693
Trades: 0
Put it into a .zip file then just link to it..

Otherwise just create a link to the file and tell the user to right click save target as
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 03-08-2005, 11:51 AM
FutileSoul's Avatar
Ultra Talker

Posts: 383
Location: Michigan
Trades: 0
thanks for the help, i didnt' realize it would be that easy
__________________

Please login or register to view this content. Registration is FREE
- The Congregation of Man
FutileSoul is offline
Reply With Quote
View Public Profile Visit FutileSoul's homepage!
 
Old 03-08-2005, 02:19 PM
camperjohn's Avatar
Ultra Talker

Posts: 268
Location: San Diego
Trades: 0
Or use this if you create the code yourself:

PHP Code:

    $t 
"test contents";

    
header("Pragma: public");
    
header("Cache-control: public");
    
    
// Already expired, reload each time (debug)
    
header("Expires: " gmdate('D, d M Y H:i:s',time() - 10000) . ' GMT');
    
header("Content-disposition: attachment; filename=something.txt");
    
header("Content-Type: txt");
    
header("Content-Transfer-Encoding: binary");
    
header("Content-Length: " strlen($t));

    echo 
$t
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
camperjohn is offline
Reply With Quote
View Public Profile Visit camperjohn's homepage!
 
Reply     « Reply to download code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.25495 seconds with 12 queries