php Ñ»·É¾³ýÒ»¸öĿ¼»òÇå¿ÕÒ»¸öĿ¼
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
{font-family:"\@ËÎÌå";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.5pt;
mso-bidi-font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:ËÎÌå;
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;
mso-font-kerning:1.0pt;}
a:link, span.MsoHyperlink
{mso-style-noshow:yes;
mso-style-priority:99;
color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-noshow:yes;
mso-style-priority:99;
color:purple;
mso-themecolor:followedhyperlink;
text-decoration:underline;
text-underline:single;}
code
{mso-style-noshow:yes;
mso-style-priority:99;
mso
Ïà¹ØÎĵµ£º
PHP
Îļþ´¦Àí
fopen()
º¯ÊýÓÃÓÚÔÚ
PHP
Öдò¿ªÎļþ¡£
´ò¿ªÎļþ
fopen()
º¯ÊýÓÃÓÚÔÚ
PHP
Öдò¿ªÎļþ¡£
´Ëº¯ÊýµÄµÚÒ»¸ö²ÎÊýº¬ÓÐÒª´ò¿ªµÄÎļþµÄÃû³Æ£¬µÚ¶þ¸ö²ÎÊý¹æ¶¨ÁËʹÓÃÄÄÖÖģʽÀ´´ò¿ªÎļþ£º
<html>
<body>
<?php
$file=fopen("welcome.txt","r");
?>
......
ǰÑÔ
¡¡¡¡
¡¡¡¡·Ï»°²»¶à˵£¬WebServiceÕâ¸öÈȰ¡£¬PHPÕâ¸ö»ð°¡£¬ÏëÓÃPHP¿ª·¢WebServiceÊÇÀíËùµ±È»µÄÊ¡£Ê²Ã´£¿²»¶®WebService£¿Ã»Ê£¬°Ù¶ÈһϾÍÖªµÀÁË¡£°¡£¿¿´²»¶®£¿²»¶®Ò²Ã»¹ØÏµ£¬Ö±½Ó¿´´óÉÙүдµÄ°É£º£©
¡¡¡¡´óÉÙÒ¯ÊǸö¼¤½ø·Ö×Ó£¬Ï²»¶Ö±½ÓÄôúÂë˵Ê£¬²»¹ýÔÚ°Ñ¿ÉÁ¯µÄ¶ÁÕßŪµÃһͷÎíˮ֮ǰ£¬»¹ÊÇÏÈ´óÖÂ˵һϱ¾ÎĵÄÄ¿ ......
ÔÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/02/01/1-8/
PHP²»Ìṩ¿ç½Å±¾µÄÈ«¾Ö±äÁ¿£¬µ«ÊÇ£¬ÒòΪʵ¼ÊµÄÐèÒª£¬PHPÌṩÁËÒ»Ð©ÌØÊâµÄÈ«¾Ö±äÁ¿ÓÃÀ´ÊµÏÖÕâЩ²Ù×÷¡£
$_GET[]£º½ÓÊÕÀ´×ÔÓû§ä¯ÀÀÆ÷ʹÓÃGET·½·¨·¢Ë͵ıäÁ¿µÄÊý×é
$_POST[]£º½ÓÊÕÀ´×ÔÓû§ä¯ÀÀÆ÷ʹÓÃPOST·½·¨·¢Ë͵ıäÁ¿µÄÊý×é
$_COOKIE[]£º ......
1 ÉùÃ÷Ò»¸öÀà
class ÈË{
³ÉÔ±ÊôÐÔ£ºÐÕÃû¡¢ÐÔ±ð¡¢ÄêÁä¡¢Éí¸ß¡¢ÌåÖØ¡¢µç»°¡¢¼Òͥסַ
³ÉÔ±·½·¨£º¿ÉÒÔ¿ª³µ£¬ »á˵ӢÓ ¿ÉÒÔʹÓõçÄÔ
}
ÊôÐÔ£º
ͨ¹ýÔÚÀඨÒåÖÐʹÓùؼü×Ö“var”À´ÉùÃ÷±äÁ¿£¬¼´´´½¨ÁËÀàµÄÊôÐÔ,ËäÈ»ÔÚÉùÃ÷³ÉÔ±ÊôÐÔµÄʱºò¿ÉÒÔ¸ø¶¨³õʼֵ£¬ µ«ÊÇÔÚÉùÃ÷ÀàµÄʱºò¸ø³ÉÔ±ÊôÐÔ³õʼֵÊÇûÓбØÒªµÄ£¬±ÈÈ ......
ÔÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/02/02/1-9/
PHPÖÐIncludeÓï¾äÔÚÓ÷¨ÉϺÍrequireÓï¾ä»ù±¾Ïàͬ£¬µ«ÊÇËûÃÇ»¹´æÔÚÁ½µã²îÒ죺
»úÖÆ²»Í¬
RequireÓï¾äÔÚ½øÐÐÎļþ°üº¬Ê±£¬²»¹ÜÕâÌõrequireÓï¾äÊÇ·ñ±»ÔËÐУ¬¶¼»á½«±»°üº¬´úÂëÖеÄÎļþ°üº¬½øÀ´¡£
IncludeÓï¾äÔÚ½øÐÐÎļþ°ü ......