MySQL
  Home arrow MySQL arrow Protect Your Users Email With PHP and MySQ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM developerWorks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MYSQL

Protect Your Users Email With PHP and MySQL
By: Eric 'phpfreak' Rosebrock
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2003-03-14

    Table of Contents:
  • Protect Your Users Email With PHP and MySQL
  • Creating Your Custom Mail Function and the 'email.php' Script
  • Email.php Code Breakdown
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Protect Your Users Email With PHP and MySQL


    (Page 1 of 4 )

    Eric reports how you, as a webmaster, must know how to protect your readers and members email adresses with the email.php file.I remember those days that I used to post my email address on my website. Then out of nowhere, I would start recieving massive amounts of email from these lousy email spam programs out there. It's an absolutely horrific experience to recieve in excess of 50 junk mails per day. The only way you can get away from it is to permanantly abandon your email account and never go back. It's has to be one of the most dreadful things to do, almost like a divorce.

    The purpose of this tutorial is to teach you a few things about hiding your user's email addresses on your website, but still enable people a method of getting into contact with your users as well. This feature gives the viewers and users of your website a comfortable feeling that those damn email spiders don't roam through your site cataloging all of the email addresses and selling them to all of these spam companies out there.

    The first thing I need to get out of the way is that this tutorial is a follow-on for the Creating a Membership System tutorial. It uses the same database structure. You do not have to use that tutorial first if you know what you are doing and you can modify the scripts in this tutorial to match your database.

    The second thing that I need to get out of the way is that this is a tutorial. It's not meant to teach you only the topic, but it's meant to teach you the methods of accomplishing routine tasks and conquering every day problems with PHP and MySQL Web Development. Please, let me repeat, PLEASE take more from this tutorial than just the code. I'm not writing this tutorial is just to give you a chunk of code. I'm writing this to show you the methods I would go about tackling this task. The reason I put this statement in this tutorial is because I am simply overwhelmed with the responses from my last two tutorials. I can not believe that some people absolutely refuse to learn something from a tutorial and all they do is snag the code and then come back asking lots of questions that could be answered if they would take the time to read the tutorial.

    Please grab a soda, cup of coffee or even a beer and then begin this tutorial. Take your time and read all of it.

    During this tutorial I will show you the following:

    • How to use a switch navigation system to compact multiple php scripts into one script
    • How to write your own mail function for easier use and recall it when you need it
    • How to hide your user's email address completely without ever showing it or displaying it even in the source code of your html
    • A couple of register_globals defeats to make life easier with register_globals turned off.
    • How to reduce the amount of code you use for mysql_query and mysql_fetch_array
    • And some other tips and tricks that I will use througout the tutorial.

    More MySQL Articles
    More By Eric 'phpfreak' Rosebrock


     

    MYSQL ARTICLES

    - MySQL and BLOBs
    - Two Lessons in ASP and MySQL
    - Lord Of The Strings Part 2
    - Lord Of The Strings Part 1
    - Importing Data into MySQL with Navicat
    - Building a Sustainable Web Site
    - Creating An Online Photo Album with PHP and ...
    - Creating An Online Photo Album with PHP and ...
    - PhpED 3.2 – More Features Than You Can Poke ...
    - Creating An Online Photo Album with PHP and ...
    - Creating An Online Photo Album with PHP and ...
    - Security and Sessions in PHP
    - Setup Your Personal Reminder System Using PHP
    - Create a IP-Country Database Using PERL and ...
    - Developing a Dynamic Document Search in PHP ...







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway