程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> email address 生成圖片程序

email address 生成圖片程序

編輯:關於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 xml(標准化越來越近了)ns="http://www.w3.org/1999/xhtml" />
<head>
<title>Welcome to domain.com</title>
<meta content="all" name="robots" />
<meta content="[email protected],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(parallels的虛擬行平台) 1 lz 1 oz 1 cz 1) gen true for "http://www.domain.com" r (nz 1 vz(parallels的虛擬行平台) 1 lz 1 oz 1 cz 1)) />
<meta http-equiv="reply-to" content="[email protected]" />
<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="[email protected]" /><br /><input type="submit" value="確定" />
</form>

然後把兩個文件放在同一個目錄就可以了.

這個程序主要是.
通過get獲取值後生成.
一個圖片格式的email地址.
主要是為了防止email搜索軟件抓取email地址.

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved