|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
在学习PHP这六个月里,每看到一个优秀的php脚本,就会兴奋的手舞足蹈,嘴里还不停的说:太酷了,太酷了。呵呵,很幼稚吧,但这可能就是兴趣。 把上面的文件保留为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);
?>
把上面的文件保留为index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" />
<head>
<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 China 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" />
</head>
<body>
<form action="index.php" mothod="post">
You email:<input name="mailname" type="text" value="Webmaster@domain.com" /><br /><input type="submit" value="肯定" />
</form>
然后把两个文件放在统一个目次就能够了.
这个法式次要是.
经由过程get获得值后生成.
一个图片格局的email地址.
次要是为了避免email搜刮软件抓取email地址.
根据功能来进行封装等。很多的不懂,在使用搜索引擎查找,或者请教老师和在老师详细的讲解、指导下,都能顺利解决。 |
|