Program
"Summary" recently a project needs to use, I decided to learn while doing PHP. From the day Php was born, PHP began to serve the vast majority of programmers in Web applications. At the same time, as a tailor-made scripting language for Web development, PHP has been adhering to the idea of simple, open source, which also enables the rapid development of PHP, and vigorously promote the emergence and development of Web2.0.
Save the following file as index.php
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.
?
/*
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 xrss.cn 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>