Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

PHP³¬È«¾Ö±äÁ¿Ö®$_SERVERµÄÏêϸÓ÷¨

 $_SERVER['PHP_SELF'] #µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû£¬Óë document rootÏà¹Ø¡£
$_SERVER['argv'] #´«µÝ¸ø¸Ã½Å±¾µÄ²ÎÊý¡£
$_SERVER['argc'] #°üº¬´«µÝ¸ø³ÌÐòµÄÃüÁîÐвÎÊýµÄ¸öÊý£¨Èç¹ûÔËÐÐÔÚÃüÁîÐÐģʽ£©¡£
$_SERVER['GATEWAY_INTERFACE'] #·þÎñÆ÷ʹÓÃµÄ CGI ¹æ·¶µÄ°æ±¾¡£ÀýÈ磬“CGI/1.1”¡£
$_SERVER['SERVER_NAME'] #µ±Ç°ÔËÐнű¾ËùÔÚ·þÎñÆ÷Ö÷»úµÄÃû³Æ¡£
$_SERVER['SERVER_SOFTWARE'] #·þÎñÆ÷±êʶµÄ×Ö´®£¬ÔÚÏìÓ¦ÇëÇóʱµÄÍ·²¿Öиø³ö¡£
$_SERVER['SERVER_PROTOCOL'] #ÇëÇóÒ³ÃæʱͨÐÅЭÒéµÄÃû³ÆºÍ°æ±¾¡£ÀýÈ磬“HTTP/1.0”¡£
$_SERVER['REQUEST_METHOD'] #·ÃÎÊÒ³ÃæʱµÄÇëÇó·½·¨¡£ÀýÈ磺“GET”¡¢“HEAD”£¬“POST”£¬“PUT”¡£
$_SERVER['QUERY_STRING'] #²éѯ(query)µÄ×Ö·û´®¡£
$_SERVER['DOCUMENT_ROOT'] #µ±Ç°ÔËÐнű¾ËùÔÚµÄÎĵµ¸ùĿ¼¡£ÔÚ·þÎñÆ÷ÅäÖÃÎļþÖж¨Òå¡£
$_SERVER['HTTP_ACCEPT'] #µ±Ç°ÇëÇóµÄ Accept: Í·²¿µÄÄÚÈÝ¡£
$_SERVER['HTTP_ACCEPT_CHARSET'] #µ±Ç°ÇëÇóµÄ Accept-Charset: Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺“iso-8859-1,*,utf-8”¡£
$_SERVER['HTTP_ACCEPT_ENCODING'] #µ±Ç°ÇëÇóµÄ Accept-Encoding: Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺“gzip”¡£
$_SERVER['HTTP_ACCEPT_LANGUAGE']#µ±Ç°ÇëÇóµÄ Accept-Language: Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺“en”¡£
$_SERVER['HTTP_CONNECTION'] #µ±Ç°ÇëÇóµÄ Connection: Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺“Keep-Alive”¡£
$_SERVER['HTTP_HOST'] #µ±Ç°ÇëÇóµÄ Host: Í·²¿µÄÄÚÈÝ¡£
$_SERVER['HTTP_REFERER'] #Á´½Óµ½µ±Ç°Ò³ÃæµÄÇ°Ò»Ò³ÃæµÄ URL µØÖ·¡£
$_SERVER['HTTP_USER_AGENT'] #µ±Ç°ÇëÇóµÄ User_Agent: Í·²¿µÄÄÚÈÝ¡£
$_SERVER['REMOTE_ADDR'] #ÕýÔÚä¯ÀÀµ±Ç°Ò³ÃæÓû§µÄ IP µØÖ·¡£
$_SERVER['REMOTE_HOST'] #ÕýÔÚä¯ÀÀµ±Ç°Ò³ÃæÓû§µÄÖ÷»úÃû¡£
$_SERVER['REMOTE_PORT'] #Óû§Á¬½Óµ½·þÎñÆ÷ʱËùʹÓõĶ˿ڡ£
$_SERVER['SCRIPT_FILENAME'] #µ±Ç°Ö´Ðнű¾µÄ¾ø¶Ô·¾¶Ãû¡£
$_SERVER['SERVER_ADMIN'] #¹ÜÀíÔ±ÐÅÏ¢
$_SERVER['SERVER_PORT'] #·þÎñÆ÷ËùʹÓõĶ˿Ú
$_SERVER['SERVER_SIGNATURE'] #°üº¬·þÎñÆ÷°æ±¾ºÍÐéÄâÖ÷»úÃûµÄ×Ö·û´®¡£
$_SERVER['PATH_TRANSLATED'] #µ±Ç°½Å±¾ËùÔÚÎļþϵͳ£¨²»ÊÇÎĵµ¸ùĿ¼£©µÄ»ù±¾Â·¾¶¡£
$_SERVER['SCRIPT_NAME'] #°üº¬µ±Ç°½Å±¾µÄ·¾¶¡£ÕâÔÚÒ³ÃæÐèÒªÖ¸Ïò×Ô¼ºÊ±·Ç³£ÓÐÓá


Ïà¹ØÎĵµ£º

phpµÄ¼¸¸ö²»Ì«³£Óõĺ¯Êý

class_exists — Åж¨Ò»¸öÀàÊÇ·ñÒѾ­±»¶¨Òå
get_class_methods — »ñȡij¸öÀàÖÐËùÓз½·¨µÄÃû³Æ
get_class_vars — »ñÈ¡Ò»¸öÀàÖÐËùÓеÄÌØÐÔ
get_class — ·µ»ØÒ»¸ö·½·¨ËùÔÚµÄÀàÃû
get_declared_classes — ÏÔʾÒѶ¨ÒåµÄÀàµÄÐÅÏ¢
get_declared_interfaces — ÏÔʾÒѶ¨ÒåµÄ½Ó¿ÚµÄÐÅÏ¢
get ......

PHP 6½«È«ÃæÖ§³ÖUnicodeºÍ¹ú¼Ê»¯

 PHPChinaѶ£ºPHPºËÐÄ¿ª·¢ÕßAndrei ZmievskiÔÚ×î½ü¾ÙÐеÄ2009 Zend/PHP»áÒéµÄÖ÷Ìâ·¢ÑÔÖÐÌá³ö£º“ÔÚ½ÓÏÂÀ´µÄPHP6ÖØÒªÉý¼¶ÖУ¬½«Í¨¹ýÖ§³ÖUnicodeÀ´°ïÖú¿ª·¢ÕßÃÇд³öÄܹ»²¿Ê𵽶à¸ö²»Í¬ÓïÑÔÊг¡µÄÓ¦ÓóÌÐò¡£”
¡¡¡¡ÉÌÒµ¿ª·¢ÖÐÈç¹ûÖ»ÊÇ¿ª·¢ÎªÌØÓïÑÔÊг¡µÄÓ¦ÓóÌÐò£¬¾Í»áʧȥÆäËûµØ·½µÄÉÌÒµ»ú»á¡£ÔçÔÚ2006Äê4Ô£ ......

phpÖеÄewebeditor±íµ¥µ÷ÓÃ

 Ïà¹Ø²ÎÊý£º<textarea name=content>
Ä£°åµ÷Ó÷û£º$
¡¡¡¡Ìá½»ÐÂ±íµ¥µÄʱºòÓÃÈçÏ´úÂ룬½á¹ûÍêÈ«Õý³££º
<form name="frm_HelpMessageAdd" id="frm_HelpMessageAdd" action="manage.php" method="POST" enctype="multipart/form-data">
<input name="content" type="hidden" id="shopProduct_Intro"& ......

php+mysqlÖеÄһЩÓï¾ä

mysql½¨Á¢Ò»¸ö±í¸ñ£º
create table hyhtbsc(
id int(4) primary key auto_increment,
username varchar(20),
password varchar(20)
);
²éѯÊý¾Ý¿âÄÚÈÝ£º
<?php
$conn = mysql_connect("localhost","root","pass");
mysql_select_db("mydb",$conn);
$sql = "select * from mytable";
$result = mysql_query($ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ