PHPÉú³ÉwordÎĵµ
ÕâÀïÖ»ÊÇÒ»¸öÀý×Ó£¬ÓÃPHPÉú³ÉÊý¾Ý×ÖµäµÄÀý×Ó£¬ÊʺÏÀÁÈË
<?php
/*
+----------------------------------------------------------------------+
| base: Yang Yu <yangyu@sina.cn> create@2009-5-18 |
| Author: jiafeng create@2010-01-27 |
+----------------------------------------------------------------------+
*/
$db_server = "localhost";
$db_name = "test_r";
$db_user = "root";
$db_pwd = "root";
$tilte = "Êý¾Ý×Öµä";
$link = mysql_connect($db_server, $db_user, $db_pwd) or die("no server");
mysql_select_db($db_name, $link) or die("no db");
//$sql = "set names gbk";
//mysql_query($sql);
$html = '
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=Generator content="Microsoft Word 11">
<title>'.$tilte.'</title>
<img src="http://i1.sinaimg.cn/home/deco/2009/0330/logo_home.gif">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Print</w:View>
<w:Zoom>115</w:Zoom>
<w:GrammarState>Clean</w:GrammarState>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:UseFELayout/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
&nbs
Ïà¹ØÎĵµ£º
< type="text/javascript">
smarty ¿ÉÒÔÉú³É£¬
ÆäʵÉú³ÉµÄÔÀíºÜ¼òµ¥
1¡¢»ñÈ¡Ä㶯̬ҳÃæµÃÄÚÈÝ
2¡¢Ð´È뾲̬Îļþ
±ÈÈ磺
<?
//»ñÈ¡ÎļþÄÚÈÝ
$content=file_get_contents(http://www.www.com/viewPage.php?id=$id
);
//¼ì²éÊÇ·ñ´æÔÚ¾ÉÎļþ£¬ÓÐÔòɾ³ý
i ......
1¡¢Ê¹ÓÃPHP Mailº¯Êý·¢ËÍEmail
$to = "viralpatel.net@gmail.com";
$subject = "VIRALPATEL.net";
$body = "Body of your message here you can use HTML too. e.g. ﹤br﹥ ﹤b﹥ Bold ﹤/b﹥";
$headers = "from: Peter\r\n"; &nbs ......
date() ½«·þÎñÆ÷µÄʱ¼ä¸ñʽ»¯
Óï·¨ÃèÊöΪstring date(string format,int[timestamp]);·µ»ØÖµµÄÊý¾ÝÀàÐÍÊÇ×Ö·û´®¡£
º¯Êý˵Ã÷£º·µ»ØÖµµÄ×Ö·û´®°´ÅäÖõĸñʽ¾ö¶¨¡£
×Ö·û´®¸ñʽ»¯µÄÑ¡ÏîÈçÏ£º
a: "am"»òÊÇ"pm"
A: "AM"»òÊÇ"PM"
d: ¼¸ÈÕ£¬Á½Î»Êý×Ö£¬Èô²»×ãÔò²¹Á㣻´Ó"01"ÖÁ"31"
D: ÐÇÆÚ¼¸£¬3¸öÓ¢ÎÄ×Öĸ£¬Èç:"Fri"
......
ÕâÁ½ÌìÅöµ½Ò»¸öСÎÊÌ⿨ÁËÎÒÀÏ°ëÌì……¾ÍÊÇLINUXÏÂPHP³ÌÐòÓëÆäËû³ÌÐòͨÐÅ¡£
ÎÒÃÇÐèҪʵÏÖÓû§ÔÚWEBÒ³ÃæÉϽøÐвÙ×÷ʱ¿ÉÒÔÆôÓÃÎÒÃÇÔÚ·þÎñÆ÷¶ËµÄºǫ́³ÌÐò£¨ÓÃC¡¢C++±àд£©¡£
֮ǰÔÚwindowsÏ£¬ÒѾʹÓÃÃüÃû¹ÜµÀʵÏÖ£¨Çë¼ûÎÒ֮ǰµÄ²©ÎÄhttp://blog.csdn.net/rcfalcon/archive/2010/02/09/5303142.aspx£©£¬Õâ´Î½«· ......