PHP Example: Email address generate picture Program

Source: Internet
Author: User
Tags php example strlen domain to domain

Save the following file as index.php

?
/*
MAILX Managment System 0.8 Beta
*/
Header ("Content-type:image/png");
$mailaddress =$_get[' Mailname '];
$mailaddresslen =strlen ($mailaddress);
$mailaddressimages =imagecreate ($mailaddresslen *10,25);
$lenadd = $mailaddresslen;
$fontsize = "4";
$center = (Imagesx ($mailaddressimages) -8.3*strlen ($mailaddress))/2;
$mailimagesbackground =imagecolorallocate ($mailaddressimages, 231,196,43);
$mailimagesfacecolor =imagecolorallocate ($mailaddressimages, 0,0,0);
Imagestring ($mailaddressimages, $fontsize, $center, 5, $mailaddress, $mailimagesfacecolor);
Imagepng ($mailaddressimages);
Imagedestroy ($mailaddressimages);
?>


Save the following file as Index.html

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "http://www.w3c.org/TR/1999/REC-html401-19991224/ Loose.dtd ">
<title>welcome to Domain.com</title>
<meta content= "All" name= "robots"/>
<meta content= "Webmaster@domain.com,us" name= "Author"/>
<meta content= "Www.domain.com,Reprint from then Webseits" Name=copyright
<meta content= "Welcome to domain.com!" name=description/>
<meta content= "About for News Sports Entertainment shop Business Travel" Name=keywords
<meta http-equiv=content-language content= "Iso-8859-1"/>
<link rev=stylesheet media=all href= "Css/style01.css" Type=text/css Rel=stylesheet
<style type=text/css media=all> @import url ("css/style01.css");</style>
<meta http-equiv= "Content-language" content= "en"/>
<meta http-equiv= "Pics-label" content= ' (pics-1.1 "http://www.icra.org/ratingsv02.html" L gen True for "http:// Www.domain.com "R" (NZ 1 vz 1 LZ 1 oz 1 CZ 1) gen true for "http://www.domain.com" R (NZ 1 vz 1 LZ 1 oz 1 CZ 1)) '/>
<meta http-equiv= "reply-to" content= "webmaster@domain.com"/>
<meta name= "Author" content= "domain.com employee"/>
<meta name= "Copyright" content= "Copyright (C) 2002-2005 domain.com all signature Rights." Reserved
<meta content= "MSHTML 6.00.3790.0" name= "generator"/>
<body>
<form action= "index.php" mothod= "POST" >
You email:<input name= "Mailname" type= "text" value= "Webmaster@domain.com"/><br/><input "Submit" Value= "OK"/>
</form>

Then you can put two files in the same directory.

This procedure is mainly.
Generated after getting a value from get.
An email address for a picture format.
The main purpose is to prevent email search software crawl email address.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.