Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Download Count Code

This is a discussion on Download Count Code within the PHP forums, part of the Web Development category; What will be the actual code for checking how many files have been downloaded and what will be the function for download?...

Go Back   Geeks Talk > Web Development > PHP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

PHP PHP - The most popular scripting language. Discuss PHP related questions here. Sample Scripts, Popular downloads, tools and utilites and more...

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2009
Junior Member
 
Join Date: Apr 2009
Location: jaipur
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
k_rishi is on a distinguished road
Download Count Code

What will be the actual code for checking how many files have been downloaded and what will be the function for download?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 989
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
Re: Download Count Code

Hi Friend,

Try this code..

<?php
ini_set('short_open_tag', 0);

// record hit via mysql or flat file

?>
<?xml version="1.0"?>
<rss version="2.0">
<node>some data</node>
</rss>


To force downloading of a file, you can use headers like...

header("Content-type: $type");
header("Content-Disposition: attachment;filename=blah.mp3");
header('Pragma: no-cache');
header('Expires: 0');


If any prblm ,Let me know...

Thanks & Regards,
Riju.
Reply With Quote
Reply

  Geeks Talk > Web Development > PHP

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 Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Count the Digits sowji_mca Mathematical Puzzles 3 07-20-2008 06:41 PM
to count vowels in c bhuvishnu C and C++ 2 03-03-2008 02:14 PM
What is the Difference between Count & Count all function in Business Objects nikitababaria Data Warehousing 2 05-30-2007 01:08 PM
Can you Count sripri Brainteasers 1 08-17-2006 05:25 AM


All times are GMT -4. The time now is 05:39 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved