HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank

Reply to topic Page 1 of 1
Downloads
Message  

Reply with quote
Post Downloads 
Hi ,

        Like downloading some free softwares we will be using some ftp servers or http servers.
So my question is that how can we provide the downloading option for the end user in php.

ex: like i want give the option do download some video clip for the users in my website.

How can i do this: If u have any ideas please post me.......

Thank you


_________________
Kotresh Kumar T
PHP Developer, Bangalore
View user's profile Send private message

Reply with quote
Post  
There are several options for that:

1) you can give a direct link
2) you can copy the needed file for download to a temporary directory through php programming and rename it as you need. then delete it using cron jobs
3) you can use header('location:myfile.mp3');
4) you can use this code for more security and reliability:

header("Content-type: application/download");
header("Content-disposition: attachment; filename=\"yourfile.mp3\"");

$fout = fopen(_VAR."pdf/newfilename.pdf", "r");

while ($buf = fread($fout, 4192)){
 echo $buf;
}
fclose($fout);

There may be several other ways or a combination of those I have listed.

Regards,
Pratamishus


_________________
First free hosting reseller program
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Reply with quote
Post  
would be great if we had more PHP tutorials and information on this forum.


_________________
<p>Contact me on Skype.com: Conscious-Evolution<p>
START YOUR OWN DOMAIN NAME REGISTRATION COMPANY NOW
https://www.securepaynet.net/gdshop/rhp/hottestreseller.asp?prog_id=423231
View user's profile Send private message Visit poster's website

Reply with quote
Post  
hi
I am a graphic designer who is thinking about learning (X)HTML + Cascading stylesheet to grow my knowledge within the website design development industry.
Offers other people started to discover this, or is already in an advance level?

Would this be a benefit to do this?

It seems to me that could be an excellent opportunity to merge the skills of (improvement and graphics) in to One.

Dealing with board this is a good objective, might We have the ability to learn lots by using Lynda One.Html code + Two. CSS tutorials.

I must listen to some feedback through people who have learned html coding, exactly what litterature/tutorial resources did you make use of for your understanding contour, how long made it happen take you (I understand; how long is really a piece of string. lol) to at least get a very good understand associated with html coding in general or just how long did it take you to understand this.


_________________
alarm clocks
Golf bags
View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  




FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Web Hosting
Web Hosting and Dedicated Servers Advertise Here $10 a Month Designer Children
Insurance HGH Domain name registration
Affordable web-hosting Dedicated Server Management

Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com