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

PHPµ¥Ë«ÒýºÅµÄÎÊÌâ

»ù´¡ÎÊÌâ:
×î½ü±»µ¥Ë«ÒýºÅÀ§ÈÅ×Å£¬²»ÖªµÀʲôʱºòÓÃË«ÒýºÅ£¬Ê²Ã´Ê±ºòÓõ¥ÒýºÅ¡£×ܽáÇø·ÖÒ»ÏÂ
Ôڴ󲿷ÝÓïÑÔÖУ¬ÒýºÅÒýÆðÀ´µÄÄÚÈݶ¼±íʾΪ×Ö·û¡£
ÀýÈ磺
      <a href="µØÖ·">Á´½Ó</a>
      echo "×Ö·û´®";
      print("×Ö·û´®");
      µ¥ÒýºÅÒ²ÓÐͬÑùµÄЧ¹û...
PHP²»½âÎöµ¥ÒýºÅÄÚµÄÄÚÈÝ£¬µ«ÊǽâÎöË«ÒýºÅµÄÄÚÈÝ£¬Ò²¾ÍÊÇ˵±äÁ¿ÔÚË«ÒýºÅÄڻᱻ
½âÎö£¬ÔÚµ¥ÒýºÅÄÚ£¬Ö±½ÓÊä³ö¡£
ÀýÈ磺
      echo "abc";//Êä³öabc
      echo 'abc';//Êä³öabc
      $abc = 1;
      echo "$abc";//Êä³ö1
      echo '$abc';//Êä³öabc
      echo "$abcdef";//²»Êä³ö£¬Ô­Òò$abc±äÁ¿Ã»Óж¨½ç·û
      echo "{$abc}def";//Êä³ö1def
      $a=1;
      echo "$a \n"; //Êä³ö 1 ²¢»»ÐÐ
      echo '$a \n'; //Êä³ö $a \n ÍêÈ«ÒÔ×Ö·ûÐÎʽÏÔʾ
    
PHPºÍHTML¿ÉÒÔ»¥ÏàÌ×Óã¬ÒòΪÔÚ <?  ?> Ö®¼äµÄÄÚÈݻᱻÔËÐС£×îÖÕÒ³ÃæÊä³öµÄ¡£
²¢²»»á°üº¬ <? ?> ±¾Éí¡£¶øÊÇ°üº¬ÆäÖеĴúÂëÔËÐеĽá¹û¡£ËùÒÔ¡£²»¹ÜÀïÃæÓжàÉÙ
PHP´úÂë¡£¶àÉÙ¸öÒýºÅ¡£¶¼ºÍÍâÃæµÄ HTML ºÁ²»Ïà¹Ø¡£
ÀýÈ磺
      <?
      $url = 'http://www.baidu.com';
      ?>
      <a href="<? echo "$url"; ?>">°Ù¶È</a>
      Êä³ö½á¹ûΪ£º
      <a href="http://www.baidu.com">°Ù¶È</a>
ÔÚijЩÒýÓø´ÔÓµÄÇé¿öÏ£¬ÐèҪעÒâתÒåʹÓÑ’ºÍ“”¡£×ªÒå·ûΪ\


Ïà¹ØÎĵµ£º

[Ô­´´] PHP ¼æÈÝ Curl/Socket/Stream µÄ HTTP ²Ù×÷Àà

<?php
/************************************************************
* ÃèÊö£ºHTTP²Ù×÷Àà
* ×÷Õߣºheiyeluren
* ´´½¨£º2009/12/13 04:43
* Ð޸ģº2009/12/16 10:30 ʵÏÖ»ù±¾HTTP¸÷ÖÖ½Ó¿Ú²Ù×÷Ö§³Ö
*
************************************************************/
/**
* HTTP¹¦Äܹ¤³§·½·¨Àà
......

phpÑéÖ¤Âë´úÂëʵÀý

ÎÒÃÇÔÚдÓû§ÑéÖ¤Ò³Ã棬Èç×¢²á£¬µÇ¼µÄʱºò£¬ÎªÁ˼ÓÇ¿Óû§µÇ¼µÄ°²È«ÐÔ£¬Ìí¼ÓÑéÖ¤ÂëÑéÖ¤¡£
ÑéÖ¤Âëͨ¹ýGDÉú³ÉPNGͼƬ£¬²¢°Ñ$randvalËæ»úÊý×Ö¸³¸ø$_SESSION['login_check_num']£¬ÔÚͨ¹ýÓû§ÊäÈëµÄ$_POST½øÐбȽϣ¬À´ÅжÏÊÇ·ñÕýÈ·¡£´ïµ½ÐèҪʵÏֵŦÄÜ£¬ÐèÒªÐÞ¸Äphp.iniÎļþ£¬Ê¹phpÖ§³ÖGD¿â¡£
<?php
//µ÷ÓôËÒ³Ã棬Èç¹ûÏ ......

phpÊä³öcsvºÍexcelÁ½ÖÖ·½·¨

1£¬¶¨Òåheader()Í·²¿Êä³ö¸ñʽ
   
   header("Content-type:application/vnd.ms-excel");
   header("Content-Disposition:finlename=php.xls");
    vnd.ms-excel -----¶¨ÒåÊä³öÎļþ¸ñ
    php.xls  ---------¶¨ÒåÊä³öµÄÎļþÃû
2£¬Êä³ö±à ......

PHPµÄCRUDÀà

ÒòΪÏîÄ¿ÐèÒª£¬ËùÒÔ×Ô¼ºÐ´ÁËÒ»¸öCRUDÀà
ËäÈ»»¹±È½Ï¼òµ¥£¬²»¹ý¸Ð¾õºÜʵÓá£
×¢£ºcls_databaseÊÇÒ»¸öÊý¾Ý¿â²Ù×÷Àà
¼û£ºhttp://code.google.com/p/cyy0523xc/source/browse/trunk/php/cls_crud.php
<?php
/**
* ×Ô¶¯»¯Êý¾Ý±í²Ù×÷Àà
* @author С²Ì <cyy0523xc@gmail.com>
* @version 1.0
*/
class cls_ ......

linuxÏ°²×°PHP APACHE MYSQL ÊÖ¼Ç

/**********************************
APACHE
***********************************/
±à¼­²ÎÊý£º
./configure" \
"--prefix=/usr/local/apache" \
"--enable-so" \
"--enable-ssl" \
"--enable-mods-shared=most" \
"--with-mpm=event" \
"--with-ssl=/usr/local/openssl" \
"--enable-cache" \
"--enable-mem- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ