Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-30-2005, 10:24 AM   #1 (permalink)
salmanjoo
Registered User
 
Join Date: Aug 2005
Posts: 18
salmanjoo is on a distinguished road
Question downloading files

plz tell me that how to download a file with the help of code
i really a new in PHP
thanx
salmanjoo is offline   Reply With Quote
Old 08-30-2005, 10:30 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,696
redhead is on a distinguished road
search this forum first, it might provide you with the answer...
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 09-02-2005, 12:12 PM   #3 (permalink)
salmanjoo
Registered User
 
Join Date: Aug 2005
Posts: 18
salmanjoo is on a distinguished road
i did not find any thing in the other threads plz help me about download to make downloading script
salmanjoo is offline   Reply With Quote
Old 09-02-2005, 05:20 PM   #4 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Please make a bit more effort
http://us3.php.net/manual/en/function.fopen.php
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 09-03-2005, 05:45 AM   #5 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 661
DJMaze is on a distinguished road
he wants to "download" not passthru/send a file

Check my code it uses fsockopen()
http://dragonflycms.org/cvs/html/inc....php?v=9.19#87
DJMaze is offline   Reply With Quote
Old 09-03-2005, 07:06 AM   #6 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Quote:
Originally Posted by DJMaze
he wants to "download" not passthru/send a file

Check my code it uses fsockopen()
http://dragonflycms.org/cvs/html/inc....php?v=9.19#87
He could just open two files in binary mode with fopen and while data comes in from one file it goes out through another. That's downloading. Course there's also libcurl, too.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 09-03-2005, 09:15 AM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
here's what i found by searching this forum.
__________________
Mike
sde is offline   Reply With Quote
Old 09-03-2005, 09:32 AM   #8 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 661
DJMaze is on a distinguished road
Quote:
Originally Posted by teknomage1
He could just open two files in binary mode with fopen and while data comes in from one file it goes out through another. That's downloading. Course there's also libcurl, too.
Yes but fopen() is locked if the server's php.ini has
Code:
allow_url_fopen = Off
Then you must use fsockopen and as shown in my script example you see how that works
DJMaze is offline   Reply With Quote
Old 09-03-2005, 10:04 AM   #9 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Ah great point, DJMaze
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloading files with PHP fp_unit PHP 10 07-08-2005 11:31 AM
Rotating .swf files at random with JavaScript? VisionsIC HTML, XML, Javascript, AJAX 0 05-18-2005 11:12 AM
Temp Internet Files - Delete wendyng HTML, XML, Javascript, AJAX 0 04-18-2005 10:30 PM
.h files needed Maani Standard C, C++ 7 02-02-2005 04:59 AM
Installing and using CMUgraphics library. Valmont Standard C, C++ 12 03-29-2003 08:39 AM


All times are GMT -8. The time now is 10:41 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting