»ù´¡PHPÓ﷨ѧϰ£º³£Á¿£¬±äÁ¿
±¾ÎÄת×Ô http://hi.baidu.com/kxw102/blog/item/f1303188d9c148bb0e2444f2.html£¬¸Ðл×÷ÕߵķÖÏí
ÔÚ
PHP
ÖУ¬»ù±¾Êý¾Ý¿ÉÒÔ·ÖΪ³£Á¿ºÍ±äÁ¿Á½ÖÖ¡£³£Á¿ÃûºÍ±äÁ¿Ãûͨ³£³ÆΪ±êʶ·û¡£(
ÐèҪעÒâµÄÊDZêʶ·û±ØÐëÒÔ×Öĸ»òÕßÏ»®Ïß¿ªÍ·£¬²¢ÇÒÖ»ÄÜ°üÀ¨×Öĸ¡¢Êý×ÖºÍÏ»®Ïß
)
ÀýÈ磺
my_function¡¢Size¡¢
_BlackµÈµÈ
1.ÏÂÃæ˵ϳ£Á¿
µÄ¶¨Ò壺
³£Á¿ÊÇÒ»¸ö²»ÄܸıäµÄÁ¿£¬Ôڽű¾Ö´ÐÐÆڼ䳣Á¿µÄֵʹ²»Äܸı䡣³£Á¿Ä¬
ÈÏΪ´óСдÃô¸Ð£¬Ò²¾ÍÊÇ˵£¬Ê¹Óôóд×Öĸ¶¨ÒåµÄ³£Á¿Ãû²»ÄÜÓÃСд×ÖĸÀ´µ÷Óᣳ£Á¿ÔÚʹÓÃÇ°±ØÐ붨Ò壬ʹÓÃ
defineº¯ÊýÀ´¶¨Òå
defineº¯ÊýµÄÓï·¨ÈçÏ£º
bool define(string name,
value [, bool case_insensitive])
ÆäÖÐ
nameÖ¸³£Á¿Ãû¡£
valueÖ¸
³£Á¿µÄÖµ(±ØÐëÊDZêÁ¿)¡£
case_insensitive±íʾ³£Á¿ÃûÊÇ·ñΪ´óСдÃô¸Ð£¬Èç¹ûΪ
TRUE±í
ʾ³£Á¿ÃûÊÇ´óСдÃô¸Ð£»·´Ö®Ôò²»Ãô¸Ð£¬Ä¬ÈÏΪ
FALSE¡£
Àý1£º
<?php
define ("C1","Hello world.\n");//¶¨ÒåC1Ϊ³£Á¿
echo C1;//Êä³öC1
echo c1;//³£Á¿C1ƴд´íÎó£¬Õâʱ²»»áÊä³öC1µÄÖµ
define ("C2","Hello world.\n",TRUE);//ÉèÖÃcase_insensitiveΪTRUE
echo C2;//Êä³öC2
echo c2;//½«CСдÊä³ö
?>
Àý2£º
<?php
echo DIRECTORY_SEPARATOR;//ÄÚÖó£Á¿
echo "<br>";
echo PATH_SEPARATOR;//ÄÚÖó£Á¿
echo "<br>";
define("COPYRIGHT", "Copyright ? 1999, Wilson Peng");//×Ô¶¨ÒåµÄ³£Á¿
echo COPYRIGHT;
?>
PHPÖеÄÔ¤¶¨Òå³£Á¿
ÔÙ²¹³ä¼¸¸öÄÚÖõij£Á¿£¬
(1)
DIRECTORY_SEPARATOR
£º
·¾¶·Ö¸ô·û£¬linuxÉϾÍÊÇ’/
’
windowsÉÏÊÇ’\
’
(2)
PATH_SEPARATOR
£ºinclude
¶à¸ö·¾¶Ê¹Óã¬ÔÚwinÏ£¬µ±ÄãÒªinclude¶à¸ö·¾¶µÄ»°£¬ÄãÒªÓÔ;
”
¸ô¿ª£¬µ«ÔÚlinuxϾÍʹÓÔ:
”¸ô¿ªµÄ¡£
Õâ2¸ö³£Á¿µÄʹÓÃÄܹ»±ÜÃⲻͬƽ̨µÄ¼æÈÝÐÔÎÊÌâ¡£
2.ÏÂÃæ˵ϱäÁ¿
µÄ¶¨Ò壺
±äÁ¿ÊÇÓÃÀ´ÁÙʱ´æ´¢ÖµµÄÁ¿£¬ÓÃÒ»¸ö
“$”
·ûºÅºóÃæ¸úÉÏÒ»¸ö±äÁ¿Ãû³Æ±íʾһ¸ö±äÁ¿¡£
×¢Òâ:
PHP
µÄ±äÁ¿ÃûÇø±ð
´óСд
¡£
ÀýÈ磺$my_string¡¢$int1
Ïà¹ØÎĵµ£º
/***************************by garcon1986**************************/
form.html
<html>
<head>
<title>Upload File</title>
</head>
<body>
<form enctype="multipart/form-data" method="POST" action="uploader.php">
<label> ......
1. ´Óphp4 ¿ªÊ¼Ôö¼ÓÁ˱àÒ벿·Ö£¬php4½«ÔÚÔËÐÐÇ°¼ì²éÕû¸ö½Å±¾µÄÓï·¨£¬ÔÚ´Ë»ù´¡ÉϱàÒëËùÓеĺ¯Êý£¬²¢ÇÒÔËÐнű¾µÄÖ÷Òª²¿·Ö£¬Èç¹ûphp ³É¹¦´´½¨ÁËÖ¸¶¨µÄhtml,Ôò˵Ã÷½Å±¾Öв»´æÔÚ´íÎ󣬺¯Êý±àÒëÕýÈ·¡£ÒÑʵÏÖ±àÒëÒ»´Î£¬¶à´ÎÔËÐС£php4 ¿ªÊ¼Ê¹ÓÃ.php ΪÀ©Õ¹Ãû
2.php4 Ö§³Öcom,Óû§¿Éͨ¹ýº¯Êýcom,com_get,com_invoke,com_load,com_ ......
1.Appserv ÊÇʲô£¿
Appserv ÊÇPHPÍøÒ³¼ÜÕ¾¹¤¾ß×éºÏ°ü£¬¿ÉÒÔ½«ÍøÂçÉÏÃâ·ÑµÄ¼ÜÕ¾×ÊÔ´ÖØаü×°³Éµ¥Ò»µÄ°²×°³ÌÐò¡£ËüÌṩÁ˼òÒס¢¿ìËÙµÄPHPÔËÐл·¾³µÄ´î½¨»úÖÆ£¬¶ÁÕßÖ»Ðè°´ÕÕÆÕͨӦÓÃÈí¼þµÄ°²×°·½Ê½¾Í¿ÉÒÔÍê³ÉApache+MySQL+PHP+phpMyAdminµÄ°²×°ÓëÅäÖù¤×÷¡£
2.Appserv ÏÂÔصØÖ·
http://www. ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating ......
REQUEST_URI ·µ»ØµÄÊÇ°üÀ¨ºóÃæÊý¾Ý´®µÄµØÖ·£¬Èç index.php?str=1234 PHP_SELF ÊÇ index.php
--------------------------------------------------------------------------------
$_SERVER[’PHP_SELF’]ÔÚ¿ª·¢µÄʱºò³£»áÓõ½£¬Ò»°ãÓÃÀ´ÒýÓõ±Ç°ÍøÒ³µØÖ·£¬²¢ÇÒËüÊÇϵͳ×Ô¶¯Éú³ÉµÄÈ«¾Ö±äÁ¿£¬Ò²»áÓÐʲôÎÊÌâô?È ......