php ÈÕÆÚÑ¡ÔñÆ÷
ÔÚÐí¶à±íµ¥ÖÐÒªÊäÈëÈÕÆÚ£¬Í¨³£µÄ×ö·¨ÊǸø³öÈý¸öÏÂÀ¿ò£¬È»ºó·Ö±ðÑ¡ÔñÄ꣬ÔºÍÈÕ¡£
ÕâÀïËù½²µÄÊÇ£¬²ÉÓÃÒ»¸öText±à¼¿òÀ´·ÅÈÕÆÚ£¬Ñ¡ÔñÈÕÆÚ¹¦ÄÜ£¬Ôò²ÉÓõ¯³öÒ»¸öÈÕÀú´°¿Ú£¬ÔÚ´°¿ÚÖÐÈÃÓû§Ñ¡Ôñ£¬ÔòText±È½Ï¿òÖÐ×Ô¶¯°ÑÈÕÆÚÌîÉÏ¡£
ÏÂÃæÎÒÃǽ²½²ÔõÑùʵÏÖËü¡£
ÔÚÈÕÆÚÑ¡ÔñµÄ´¦ÀíÉÏ£¬Àý×ÓÈçÏ£º
wnl.htm
<form name="form1" method="post" action="">
<script language="javascript">
function popupCal()
{
var popup = window.open('wnl/wnl.php', 'popupcal', 'width=600,height=200,resizable=1,scrollbars=auto');
}
</script>
<input type="text" name="textdate" value="" readonly="true">
<input type="button" name="button" value="Ñ¡ÔñÈÕÆÚ" onClick="popupCal()">
</form>
ÔÚд°¿ÚÖдò¿ªµÄÊÇÒ»¸öÈÕÀú´°¿Ú£¬¹ØÓÚÈÕÀú´°¿Ú£¬ËüÖ÷ÒªÊÇҪѡÔñÈÕÆÚµÄJavascriptÈçÏ£º
<script language="javascript">
function returnDate(varDate)
{
var strDate = "{$yyyy}-{$mm}-";
strDate += varDate;
window.opener.document.form1.textdate.value = strDate;
}
</script>
ÏÂÃæÎÒÃǸø³öÍêÕûµÄÈÕÀú´úÂë[PHP´úÂë]
wnl/wnl.php
<?php
//---------------------------------------------------------------------------
// Filename : wnl.php
// Author : Bai Jianping<hakusan@sohu.com>
// Description : ÍòÄêÀú³ÌÐòµÄÖ÷ÒªÂß¼¹¦ÄÜʵÏÖ²¿·Ö
// Date : 2005-03-18
// Version : 1.0
// Copyright : Chinux Team
//---------------------------------------------------------------------------
// History :
//
// Date Author Modification
//---------------------------------------------------------------------------
// 2005-03-18 Bai Jianping - create file
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
$YYYY_MIN = 1900; // ×îСÄê·Ý
$YYYY_MAX = 2099; // ×î´óÄê·Ý
$YYYYMM_MIN =
Ïà¹ØÎĵµ£º
ÎÄ/Fenying
¡¡¡¡ÀýÈçÓг£ÓÃʱ¼ä¸ñʽ yyyy-mm-dd HH:ii:ss£¬ÈçºÎת»»³ÉPHPÖÐdateº¯Êý¿ÉʹÓõÄʱ¼ä¸ñʽÄØ£¿
¡¡¡¡Ê¹Óà PHPTimeFormatfromCommon() ¿ÉÒÔ°ÑͨÓÃʱ¼ä¸ñʽת»»³ÉPHPʱ¼ä¸ñʽ
¡¡¡¡¡¡¡¡PHPTimeFormatfromCommon('yyyy-mm-dd HH:ii:ss') => 'Y-m-d H:i:s'
¡¡¡¡Ê¹Óà PHPTimeFormatToCommon() ¿ÉÒÔ° ......
Ê×ÏÈÉêÃ÷£ºÕâ¸öÊÇÎÒתÔصģ¬ÖÂÁ¦ÓÚΪÏñÎÒÒ»ÑùµÄÐÂÊÖÌṩ°ïÖú£¡
1¡¢IISÏÂ301ÉèÖà InternetÐÅÏ¢·þÎñ¹ÜÀíÆ÷ -> ÐéÄâĿ¼ -> Öض¨Ïòµ½URL£¬ÊäÈëÐèҪתÏòµÄÄ¿±êURL£¬²¢Ñ¡Ôñ“×ÊÔ´µÄÓÀ¾ÃÖض¨Ïò”¡£
2¡¢ASPϵÄ301תÏò´úÂë
<%@ Language=VBScript %>
<%
Response.Status=”301 Moved Permanent ......
<pre>
PHP´úÂë
<?php
// Àý×Ó1
function test_global() {
global $var1, $var2;
$var2 =& $var1;
}
function test_globals() {
......
$str=preg_replace("/\s+/", " ", $str); //¹ýÂ˶àÓà»Ø³µ
$str=preg_replace("/<[ ]+/si","<",$str); //¹ýÂË<__("<"ºÅºóÃæ´ø¿Õ¸ñ)
$str=preg_replace("/<\!--.*?-->/si","",$str); //×¢ÊÍ
$str=preg_replace("/<(\!.*?)>/si","",$s ......
http://www.w3school.com.cn/php/php_intro.asp
ʲôÊÇ PHP£¿
PHP Ö¸ PHP:³¬Îı¾Ô¤´¦ÀíÆ÷£¨ÒëÕß×¢£ºPHP: Hypertext Preprocessor£¬µÝ¹éÃüÃû£©
PHP ÊÇÒ»ÖÖ·þÎñÆ÷¶ËµÄ½Å±¾ÓïÑÔ£¬ÀàËÆ ASP
PHP ½Å±¾ÔÚ·þÎñÆ÷ÉÏÖ´ÐÐ
PHP Ö§³ÖºÜ¶àÊý¾Ý¿â£¨MySQL¡¢Informix¡¢Oracle¡¢Sybase¡¢Solid¡¢PostgreSQL¡¢Generic ODBC µÈµÈ£©
PHP ÊÇÒ ......