ÓйØphpǰ;
¹ØÓÚPHPµÄǰ;£¨Ò»£© £¨À´×Ô±¾Õ¾µÄÏûÏ¢£©
ÒëÕß×¢£ºÕâÊÇһƪµÂ¹úÈËдµÄ¹ØÓڣУȣеē³¤Æª´óÂÛ”£¬×÷ÕßÔÚÎÄÖаѣУȣдµµÄÉñºõÆäÉñ£¬´óÓÐһͳ½ºþµÄ¼ÜÊÆ¡£ÇÒ²»È¥¹ÜËü¹ÛµãÊÇ·ñÕýÈ·£¬Õâôһƪ¾µäµÄ“´µÅ£ÆæÎÄ”¶ÔÎÒÃÇÕâЩ³Ï»Ì³Ï¿ÖµÄ£Ð£È£Ð³ÌÐòÔ±À´Ëµ£¬µ½ÊǷdz£ÖµµÃÒ»¿´µÄ¡£»¹ÊÇÏл°ÉÙ˵£¬ÈÃÎÒÃÇ¿ªÊ¼ÐÀÉÍÕâÆÆæÎİɣ¡
1.ÐòÑÔ
¶¨Ò壺PHPÊÇÒ»ÖÖ¼òµ¥µÄ£¬ÃæÏò¶ÔÏóµÄ£¬½âÊÍÐ͵쬽¡×³µÄ£¬°²È«µÄ£¬ÐÔÄܷdz£Ö®¸ßµÄ£¬¶ÀÁ¢Óڼܹ¹µÄ£¬¿ÉÒÆÖ²µÄ£¬¶¯Ì¬µÄ½Å±¾ÓïÑÔ¡£PHP¾ßÓкÍJAVAÀàËÆµÄClass¹Ø¼ü×Ö¡£ÒòΪ²»ÐèÒªÐéÄâ»ú£¬ÒÔÖÂËٶȱÈJAVA¿ì5±¶¡£PHPÕýѸËÙ±ä³ÉÒ»ÖÖ±ê×¼µÄ£¬¶àÓÃ;µÄ£¬ÃæÏò¶ÔÏóµÄ½Å±¾ÓïÑÔ¡£PHP²»½ö¿ÉÓÃÀ´¿ª·¢WebÓ¦ÓóÌÐò£¬Ò²¿ÉÒÔ¿ª·¢ÆÕͨӦÓóÌÐò¡£
PHPÊÇÒ»ÖÖ¹¦ÄÜÇ¿´óµÄ½Å±¾ÓïÑÔ¡£PHP½«»÷°ÜPERL/Python²¢È¡¶ø´úÖ®¡£PHPÊÇÏÂÒ»´úµÄPERL/Python½Å±¾¡£PHP¿ÉÒÔʤÈÎÈκÎPERL/Python×öµÄ¹¤×÷£¬²¢ÇÒ×öµÄ¸ü¶à£¬¸üºÃ£¬¸ü¼ò½à£¡£¡
PHPÊÇHypertext Pre-Processor£¨³¬Îı¾Ô¤´¦ÀíÆ÷£©µÄËõд£¬ËüÊÇÒ»ÖÖ·þÎñÆ÷¶ËµÄHTML½Å±¾/±à³ÌÓïÑÔ¡£PHPÓï·¨ÉÏÓëCÏàËÆ£¬¿ÉÔËÐÐÔÚApache, Netscape/iPlanet, ºÍ Microsoft IIS Web ·þÎñÆ÷ÉÏ¡£PHP×÷ΪһÖÖ¹¤¾ß£¬¿ÉÒÔÈÃÄã´´½¨¶¯Ì¬µÄWebÒ³Ãæ¡£Ó¦ÓÃPHPµÄÍøÒ³Óë³£¹æµÄHTMLÒ³Ãæ²¢ÎÞ¶þÖ£¬Äã¿ÉÒÔÓÃͬÑùµÄ·½Ê½À´´´½¨¡¢±à¼ËüÃÇ¡£PHPÔÊÐíÄãÖ±½ÓÔÚHTMLÎļþÀïдÈë¼òµ¥µÄ½Å±¾£¬ÕâÒ»µãÓëJavascript·Ç³£ÏàËÆ¡£¶ø²»Í¬µÄÊÇ£¬PHP²»ÒÀÀµÓÚä¯ÀÀÆ÷£¬ÊÇ·þÎñÆ÷¶ËµÄÓïÑÔ£¬¶øJavascriptÈ´ÊÇÒ»ÖÖ¿Í»§¶ËµÄǶÔÚHTMLÖеÄÓïÑÔ¡£¸ÅÄîÉÏ£¬PHPÓëNetscapeµÄLiveWire Pro²úÆ·£¬MicrosoftµÄASPÒÔ¼°SunMicrosystem µÄJSPÏàËÆ¡£
PHP²»½ö¿ÉÒÔÓÃÀ´´´½¨WebÓ¦ÓóÌÐò£¬Ò²¿ÉÒÔÓÃÀ´¿ª·¢ÆÕͨµÄµ¥»úÓ¦ÓóÌÐò¡£
PHPµÄÇ¿¾¢Ö®´¦ÔÚÓÚ£º
·PHPÊÇÒ»Ïî×îÓÅÐãµÄ¼¼Êõ¡£ÆäËü¼¼Êõ£¬ÈçPERL£¬Python£¬ Tcl£¬ VB script£¬ ASP Ïà¶ÔÀ´Ëµ£¬¶¼Êdz¾ɵÍÁӵġ£¼´Ê¹ÊÇJava/JSP£¬Ò²ÔÚPHP֮ϡ£
·¿ª·ÅÔ´Âë
·¹ã·ºµÄÊý¾Ý¿âÁ¬½Ó
·´óÁ¿µÄÀ©Õ¹¿â
·×÷ΪһÖÖ¶àÓÃ;µÄ½Å±¾ÓïÑÔ£¬±ÈPERL£¬VB script£¬ ASP£¬ JSP¶¼ÒªÓÅÐã¡£
ΪʲôѡÔñPHP£¿ÒòΪPHPÊÇ×îºÃµÄ£¬ÔÒòÈçÏ£º
·PERL“ζµÀ²»ºÃ”£¬ÒòΪÆä³ÌÐò²»Ò×ÔĶÁºÍά»¤£¬ÇÒ²»ÊÇÃæÏò¶ÔÏóµÄ¡£°ÑPERLÍüÁË£¬×ªÏòPHP°É¡£PERL³ÌÐòÔ±½«ÅׯúPERL£¬ÒòΪËûÃǰ®ÉÏÁËPHP£¡ PHPʵ¼ÊÉϾÍÊÇ“ÏÖ´ú°æµÄPERL”£¬Ö»ÊÇÃû³Æ²»Í¬¶øÒÑ¡£
·Java ÊÇÃæÏò¶ÔÏóµÄ£¬µ«ËٶȺÜÂý¡£Java³ÌÐòÔ¶
Ïà¹ØÎĵµ£º
Ŀǰ£¬×î³£ÓõÄÈýÖÖ¶¯Ì¬ÍøÒ³ÓïÑÔÓÐASP(Active Server Pages),JSP(Java Server Pages),
PHP (Hypertext Preprocessor)¡£
¼ò ½é
¡¡¡¡ASPÈ«ÃûActive Server & ......
֮ǰPHPʵÏÖ¶àÓïÑÔ¹ú¼Ê»¯£¬´ó²¿·Ö¶¼»á²ÉÓðÑÓïÑÔÖ±½ÓÌá³öÀ´×÷ΪÊý×éÀ´µ÷Óã¬ÀýÈç±È½ÏÓÐÃûphpMyadmin£¬discuzµÈÖªÃû¿ªÔ´ÏµÍ³£¬²»¹ý£¬ÕâÀï½éÉÜÈçºÎͨ¹ýgettext£¬¼´ÓÃ×ÊÔ´ÎļþÀ´ÊµÏÖ¡£µäÐ͵ÄCMS°¸Àý-wordpressÒ²ÊÇͨ¹ýËüʵÏÖµÄÓïÑÔ¹ú¼Ê»¯£¬ÏÂÃæÀ´ËµÏÂphpÖÐÈçºÎÀ´ÀûÓÃÅäÖÃÎļþʵÏÖ¹ú¼Ê»¯µÄ¡£
Ê×ÏȽéÉÜÏÂ.MOÎļþ£¬ÔÚPHPÖÐÊÇÀûÓà ......
²åÈë´úÂë
<?
$action=$_GET['action'];
switch($action){
//Ìí¼Ó¼Ç¼
case"add";
$mail = trim(htmlspecialchars($_POST["mail"]));
$username = trim(htmlspecialchars($_POST["username"]));
$tel = trim(htmlspecialchars($_POST["tel"]));
$fax = trim(htmlspecialchars($_POST["fax"]));
$c ......
<?php
header("Content-type:text/html;charset=gb2312"); //¿´ÄãÓõÄÊÇʲô±àÂ룬Ҫ±£³ÖÒ»Ö¡£
$files="config.php"; //ҪдÈëµÄÅäÖÃÎļþ¡£
if(!is_writable($files)){ //ÅжÏÊÇ·ñÓпÉдµÄȨÏÞ£¬linux²Ù×÷ϵͳҪעÒâÕâÒ»µã£¬windows²»±Ø×¢Òâ¡£
echo "<font color=red>Îļþ²»¿Éд</font>";
......
×î½üÒ»Ö±ÔÚÑо¿freeBSDÏÂnginx+php+mysqlµÄ°²×°£¬¿´Á˺ܶàÍøÉϵÄ×ÊÁÏÊÕ»ñ²»Ð¡£¬²»¹ý´ó²¿·Ö¶¼ÊDZàÒë°²×°£¬Ïà¶Ô³õѧÕßÀ´Ëµ±È½Ï¸´ÔÓ£¬²»ÈÝÒ×Àí½â£¬ËùÒÔÎÒÕûºÏÁËһЩports°²×°µÄ×ÊÁÏ£¬¶¼ÊǾ¹ý×Ô¼ºÑéÖ¤ºóµÄ£¬°²×°³É¹¦Ò²±È½ÏÈÝÒ×Àí½â£¬ÏÂÃæÊÇÁ½Öֳɹ¦µÄ°¸Àý£¬ÆäÖÐÓÐÒ»¸öÊÇApache´úÌænginxµÄ°²×°£¬Ï£Íû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
° ......