phpѧϰ±Ê¼Ç£¨2£©
phpÅäÖÃÌ«¸´ÔÓÁË,×òÌìÍíÉÏÅäÖÃÁË°ëÌ컹ûÓгɹ¦!²»µÃ²»Ñ°Çó¸ü¼òµ¥µÄ½â¾ö·½·¨:WampServer 5 ¼¯³É»·¾³
Wamp5ÊÇApache+PHP+Mysql ÔÚWindowsϵļ¯³É»·¾³£¬ÓµÓмòµ¥µÄͼÐκÍ
²Ëµ¥°²×°¡£¸Ã°æ±¾¼¯³ÉÁËPHP5.2.5 Mysql5 Apache2 phpMyAdmin 2.11.2.1
SQLiteManager 1.2.0 ÂúÁ˴󲿷ÖPHPerµÄÐèÇó.
´ÓÓï·¨ÉÏ¿´£¬PHPÓïÑÔ½üËÆÓÚCÓïÑÔ¡£¿ÉÒÔ˵£¬PHPÊǽè¼øCÓïÑÔµÄÓï·¨ÌØÕ÷£¬ÓÉCÓïÑÔ¸Ä
½ø¶øÀ´µÄ¡£ÎÒÃÇ¿ÉÒÔ»ìºÏ±àдPHP´úÂëºÍHTML´úÂ룬²»½ö¿ÉÒÔ½«PHP½Å±¾Ç¶Èëµ½ HTML
ÎļþÖУ¬ÎÒÃÇÉõÖÁ»¹¿ÉÒÔ°Ñ HTML ±êǩҲǶÈëÔÚ PHP ½Å±¾Àï¡£ÒÔÏÂÊÇÄã¿ÉÒÔ²ÉÓõļ¸ÖÖ·½·¨¡£
Äã¿ÉÒÔÑ¡ÓÃÆäÖÐÒ»ÖÖÄã×îÊʺϵIJ¢ÇÒ¾ÍÕâÑù¼á³ÖÕâÖÖ·½·¨£¡
´ÓHTMLÖзÖÀë
ÒÔÏÂÊÇ¿ÉÒÔʹÓõķ½·¨£º
<? . . . ?>
<?php . . . ?>
<script language="php"> . . . </script>
<% . . . %>
ÓëPerlºÍCÒ»Ñù£¬ÔÚPHPÖÐÓÓ£»”À´·Ö¸ôÓï¾ä¡£ÄÇЩ´ÓHTMLÖзÖÀë³öÀ´µÄ±êÖ¾Ò²±íʾÓï¾äµÄ½áÊø¡£
×¢ÊÍ
PHPÖ§³ÖC£¬C ºÍUnix·ç¸ñµÄ×¢ÊÍ·½Ê½£º
/* C,C ·ç¸ñ¶àÐÐ×¢ÊÍ */
// C ·ç¸ñµ¥ÐÐ×¢ÊÍ
# Unix·ç¸ñµ¥ÐÐ×¢ÊÍ
ÈçºÎ´¦Àí¼òµ¥µÄPHP´íÎó:
1¡¢ÄãÒª°ÑPHP.ini ÀïµÄ display_errors = On ²Å¿ÉÒÔÏÔʾ´íÎóλÖÃ
2¡¢Ï°¹ßʹÓÃecho »òÕß print ´òÓ¡
3¡¢Ñ§»áʹÓÃ×¢ÊÍÀ´ÆÁ±Î·ûºÅÀ´µ÷ÊÔ
// ……….
/*………… */
#..............
4¡¢Òª¶®µÃ¿´´íÎóÐÅÏ¢£¨Ó¢ÎIJ»ÊìϤ°¢À²®Êý×Ö×ÜÈÏʶ°É£©
Ïà¹ØÎĵµ£º
¡¡¡¡/***************************
¡¡¡¡* author : ´óÁäÇàÄê
¡¡¡¡* email : wenadmin@sina.com
¡¡¡¡* from: http://blog.csdn.net/hahawen
¡¡¡¡* תÔØÇë±£ÁôÕⲿ·ÖÐÅÏ¢£¬Ð»Ð»
¡¡¡¡***************************/
phpÒ³Ãæ·ÃÎÊʱ£¬Í³Ò»½øÐÐȨÏÞÑéÖ¤µÄÉè¼Æ
ÍíÉÏÓÐÈËÎÊÎÒ¹ØÓÚÍøÕ¾Ò³ÃæÏÔʾµÄʱºò£¬È¨ÏÞÅжϵÄÎÊÌâ¡£ÓÚÊǾÍÓ ......
ÓÉÓÚÄêÇ°°Ñ¹¤×÷È·ÈÏÏÂÀ´ÁË£¬ÓÚÊÇ×¼±¸ÀûÓÃ׫д±ÏÒµÂÛÎĵÄÆÚ¼äѧϰһÏÂPHPµÄ¿ª·¢£¬ÈκÎÒ»ÃÅÓïÑÔµÄѧϰ¹ý³Ì£¬µÚÒ»²½¶¼ÊÇ¿ª·¢»·¾³µÄ³É¹¦ÅäÖã¬ÓÚÊÇÎÒ»¨ÁËÒ»ÉÏÎçʱ¼ä°Ñ»·¾³´î½¨³É¹¦¡£
PHP¿ª·¢»·¾³ÅäÖùý³ÌÏê½â
±¾´ÎÅäÖÃÖ÷ÒªÕë¶ÔÓÚWindows XPϵÄÅäÖð²×°£¬ÖÁÓÚLinuxϵÄÅäÖð²×°½«ÔÚÒÔºó¸øÓè²¹³ä¡£
Ò»¡¢ËùÐèÈí¼þ
Windows XP ......
<mce:script type="text/javascript" language="javascript"><!--
function del(com_id,meet_id){
$.ajax({
url:'../company/meet.Ajax.php',
type:'POST',
data:{com_id:com_id,meet_id:meet_id},
dataType:"json",
timeout: 10 ......
Óû§¶¨ÒåµÄÀ࣬ҲÊÇѧºÃ PHP Ëù±Ø±¸µÄÌõ¼þÖ®Ò»¡£
¶ø PHP µÄÀ࣬ºÍÆäËüµÄÃæÏò¶ÔÏóÓïÑԱȽÏÆðÀ´£¬»¹ËãÂùµ¥´¿µÄ¡£
PHP Ö»ÓÐÀà±ð (class)¡¢·½·¨ (method)¡¢ÊôÐÔ¡¢ÒÔ¼°µ¥Ò»¼Ì³Ð (extensions) µÈ¡£
¶Ô²»Ï°¹ßʹÓà C++¡¢Java¡¢Delphi µÈÃæÏò¶ÔÏóÓïÑÔÀ´¿ª·¢³ÌÐòµÄÓû§£¬²»·ÁÏÈÔĶÁÒ»ÏÂÓйØÃæÏò¶ÔÏó¸ÅÄîµÄÊ飬ÏàÐÅ¿ÉÒÔ´øÀ´Ðí¶àµÄÊÕ ......
PHP¸ÅÊö£º
phpÊÇHypertext Preprocessor(³¬Îı¾Ô¤´¦ÀíÆ÷)µÄËõд£¬ÊÇÒ»ÖÖ·þÎñÆ÷¶Ë¡¢¿çƽ̨¡¢HTMLǶÈëʽµÄ½Å±¾ÓïÑÔ£¬Æä¶ÀÌصÄÓï·¨»ìºÏÁËCÓïÑÔ¡¢JavaÓïÑÔºÍPerlÓïÑÔµÄÌص㣬ÊÇÒ»ÖÖ±»¹ã·ºÓ¦ÓõĿªÔ´Ê½µÄ¶àÓÃ;½Å±¾ÓïÑÔ£¬
ÓÈÆäÊʺÏweb¿ª·¢¡£phpÊÇb/sÌåϵ½á¹¹£¬ÊôÓÚÈý²ã½á¹¹¡£·þÎñÆô¶¯ºó£¬Óû§²»ÓÃÏàÓ¦¿Í»§¶ËÈí¼þ£¬Ö»ÓÃä¯ÀÀÆ÷ä¯ ......