Important alert: (current site time 9/20/2014 7:37:04 AM EDT)
 

article

security & privacy download to authorized person or members ~ PART 2 & 3

Email
Submitted on: 5/31/2011 2:02:14 PM
By: eSanshar  
Level: Advanced
User Rating: Unrated
Compatibility: PHP 3.0, PHP 4.0, PHP 5.0
Views: 2226
author picture
(About the author)
 
     

#PART 2 & 3:: Create db.php file database connection & Create database to store secure links & tracking details


this article for those who want to develop Security & Privacy Download any files to authorized person or members...............

Make your files secure download

Make your download folder secure

Make download link secure.............visitors Or members may keeps & share your download links for future download thousand's time same link from unauthorized place & sites.

So keep safe your download link & safe your bandwidth.

DO encrypt in md5 to every download links

Keep tracking your download links.

Only allow to authorize persons or your members..............etc


much more were have in this tutorials & articles share my knowledge's with yours I hope you like it. :)

Powered by technicguy [ eSanshar IT Experts ]
A complete IT Solutions & services



 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
				

Part: 2

  1. Create db.php file database connection
    <?php
    DEFINE('DATABASE_USER', 'root');
    DEFINE('DATABASE_PASSWORD', '');
    DEFINE('DATABASE_HOST', 'localhost');
    DEFINE('DATABASE_NAME', 'demo');

    $con = mysql_connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASSWORD);
    mysql_select_db(DATABASE_NAME, $con);


    if (!$con) {
    trigger_error('Could not connect to MySQL: ' . mysql_connect_error());
    }

    ?>

Part: 3

  1. Create database to store secure links & tracking details
    f_file: secure links | f_name: filereal name | f_size: file size | f_user: u may use it to store your member name who downloads | f_mby: its for who entry the secure links | f_dmby: Date of who update entry links  | f_hits: download counter | f_ip: download IP | f_ddate: Date of download | f_date: Date of entry links

    CREATE TABLE IF NOT EXISTS `download` (
    `no` int(1) NOT NULL AUTO_INCREMENT,
    `f_file` varchar(50) DEFAULT NULL,
    `f_name` varchar(50) DEFAULT NULL,
    `f_size` tinytext,
    `f_user` tinytext,
    `f_mby` tinytext,
    `f_dmby` tinytext,
    `f_hits` tinytext,
    `f_ip` tinytext,
    `f_date` tinytext,
    `f_ddate` tinytext,
    PRIMARY KEY (`no`)
    );


Other 7 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Advanced category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.