ÓйØphpǰ;¶þ
¹ØÓÚPHPµÄǰ;£¨¶þ£© £¨À´×Ô±¾Õ¾µÄÏûÏ¢£©
3.2ÔÚWindows 95/98/NT/2000ÉÏ¿ìËÙ°²×°Apache Web·þÎñÆ÷£¨10ÃëÖÓ£©
ÔÚWindowsÉÏÔËÐÐPHP£¬ÄãÐèÒªÒ»¸öWeb·þÎñÆ÷£¬Äã¿ÉÒÔʹÓÃ΢ÈíµÄIIS£¬Ò²¿ÉÒÔʹÓÃÃâ·ÑµÄApache ¡£ÒòΪ¿ÉÒÔͨ¹ýApacheµÄ°²×°Îļþsetup.exe½øÐа²×°£¬¿ÉÒÔΪÄã½ÚÊ¡Ðí¶àʱ¼ä¡£
PHPTtriadÊÇÒ»¸ö°üÀ¨Apache¡¢PHP¡¢MySQLµÄÈí¼þ°ü£¬¿É´Óhttp://www.phpgeek.com/phptriad.php »òÆä¾µÏñÕ¾µãhttp://sourceforge.net/projects/phptriadÏÂÔØ¡£ÎÒÇ¿ÁÒÍƼöʹÓÃPHPTtriad£¬ËüÔÚWindowsÓû§Öм«ÊÜ»¶Ó£¨Òѱ»ÏÂÔØÁ˼¸°ÙÍò´Î£©¡£
Apache ¶þ½øÖƳÌÐò£º http://httpd.apache.org/dist/httpd/binaries/win32
3.3 ΢ÈíµÄSQL·þÎñÆ÷
SQL·þÎñÆ÷¿ÉÒÔ°²×°ÔÚ²»ÐèÒªÔËÐÐWindowsµÄ»úÆ÷ÉÏ£¬¶øÄãÒ²ÐèÒªÒ»¸öSQL·þÎñÆ÷À´×÷Web¿ª·¢¡£ÎÒÍƼöÄãÔÚºÜÀϵÄPCÉÏ£¨ÈçPentium»ò486£©°²×°Redhat LinuxºÍPostgreSQL RPMs¡£ÄãÊý¾Ý¿â²¢²»ÐèÒªÈκÎWindowsͼÐνçÃ棬¿ÉÒÔÔÚ¿ØÖÆֱ̨½ÓÆô¶¯PostgreSQL¡£PostgreSQLµÄËٶȴó¸ÅÊÇOracleºÍMS SQL serverµÄ3±¶¡£
PHPµÄPostgreSQLÖ§³Ö¿âÊÇÓÉAdam Sussman±àдµÄ£¬ËûµÄÓʼþµØÖ·ÊÇ£ºasussman@vidya.com
Ö§³ÖWindows NT/2000µÄPostgreSQL¿É´Óhttp://www.askesis.nlÏÂÔØ¡£¿É´Óhttp://www.geocities.com/alavoor ... stgreSQL-HOWTO.html»ñÈ¡PostgreSQLµÄʹÓÃÖ¸ÄÏ ¡£
3.4 PHPÔÚUNIXºÍÆäËü²Ù×÷ϵͳÉϵݲװ
²Î¼ûPHPÖ÷Õ¾µãwww.php.netÉϵݲװָÄϺÍ˵Ã÷£¬»òËùÏÂÔصÄÈí¼þ°üÖеÄINSTALLÎļþ¡£
4.¿ìËÙ½ø½×
ÓÃPHPµÄÃæÏò¶ÔÏó»úÖÆʵÏÖÒ»¸öÏîÄ¿µÄ²½ÖèÈçÏ£º
·Ê×ÏÈ£¬ÄãÐèÒªÁ¬½ÓÒ»¸öÊý¾Ý¿âSQL·þÎñÆ÷——ÓÐÏÂÃæÁ½¸öÑ¡Ôñ£º
ADODB (Active Data Objects Data Base)£¬¼´¶¯Ì¬Êý¾Ý¶ÔÏóÊý¾Ý¿â£¨http://php.weblogs.com/adodb£©
Metabase(Database independent access and management),¼´Êý¾Ý¿â¶ÀÁ¢·ÃÎʺ͹ÜÀí£¨
http://phpclasses.upperdesign.com/browse.htm/package/20£©
·µÚ¶þ£¬ÄãÐèҪһЩͨÓõÄPHPÀàÀ´´´½¨±íµ¥¡¢±í¸ñºÍÆäËüHTML¶ÔÏó¡£ÕâЩ¶¼¿ÉÒÔ´ÓPHP classesÍøÕ¾ÉÏ»ñÈ¡£¨http://phpclasses.upperdesign.com£©¡£¿ÉÒԲο¼Ò»Ï¸ÃÍøÕ¾µÄÏÂÔØÅÅÐаñ¡£Ò²¿ÉÒÔ´ÓÍøÕ¾http://www.milkywaygalaxy.freeservers.com/ÉÏ»ñÈ¡±íµ¥Àࡢģ°åÀàµÈ¡£
·µÚÈý£¬Í¨¹ý¶ÔÕâЩͨÓÃÀàµÄ¼Ì³Ð£¬À´Éè¼ÆºÍ´´½¨×Ô¼ºµÄPHPÀà¡£
·µÚËÄ£¬Ê¹ÓÃÄ£°åÀàÀ´·ÖÀëÏÔʾÑùʽºÍÒµÎñÂß¼£¬¿É²Î¼ûhttp://www.phpclasses.com
·µÚÎ壬ʹÓÃIDE¹¤
Ïà¹ØÎĵµ£º
×î½ü×öÁ˼¸¸öСÐ͵ÄÏîÄ¿£¬±È½Ï¼òµ¥£¬Ö»ÊÇÐèҪϸÐÄ£¬¶¼¿ÉÒÔÍê³É£¬Ö÷ÒªÊǶÔMVCģʽµÄÊìÁ·Ó¦Ó㬶ÔWEBÀ࿪·¢»¹ÊǺÜÓаïÖúµÄ¡£
¸Õ¿ªÊ¼µÄµÚÒ»¸öСÏîÄ¿£¬ÓÃÀ´Á·ÊÖ£¬È»ºóÎÒÈ«²¿ÊÇÁ÷³Ì»¯µÄ±à³Ì¡£´úÂëÒ²¾Í400ÐÐ×óÓÒ¡£½á¹ûÎҵĵ¼Ê¦£¬¾õµÃ´úÂë½á¹¹²»ÇåÎú£¬²»ÈÝÒ×
ά»¤£¬ÐèÒªÐ޸ġ£ÐèÒªÎÒ²ÉÓÃOOÀàµÄ±à³Ì·½Ê½½øÐиÄд¡£ÎÒÒÔǰдPHP£¬¼¸ ......
ÔÎÄת×Ô £ºhttp://home.phpchina.com/space.php?uid=49655&do=blog&id=182488
Ò»£® ±Ø±¸ÖªÊ¶
1.wsdl(web·þÎñ±ê¼ÇÓïÑÔ)
WSDL£¨ÍøÂç·þÎñÃèÊöÓïÑÔ£¬Web Services Description Language£©ÊÇÒ»ÃÅ»ùÓÚ XML
µÄÓïÑÔ£¬ÓÃÓÚÃèÊö Web Services ÒÔ¼°ÈçºÎ¶ÔËüÃǽøÐзÃÎÊ¡£
......
˼·:SQLÀᄀ¿ÉÄܵIJÉÓÃÁ½¸öÒýºÅ±ÕºÏ±äÁ¿;¶Ô±äÁ¿ÖеÄÒýºÅתÒå;¶Ô²»ÄܲÉÓÃ2¸öÒýºÅ±ÕºÏµÄ±äÁ¿,ÏÈÔ¤ÏÈÅжϱäÁ¿ÀàÐÍ;
·½°¸:
1 ËùÓзÇÊýÖµÔËËã(Èç×Ö·û,¼òµ¥ÊýÖµÐ͵ȵÈ)µÄSQL±äÁ¿¶¼¼ÓÒýºÅ;
2 ËùÓзÇÊýÖµÔËËãµÄSQL±äÁ¿µÄÖµ¶¼²ÉÓÃmagic_quotes_gpc» ......
isset() ¡¾1¡¿
Returns TRUE if var
exists and has value other
than NULL, FALSE otherwise.
ÊäÈë¿ÉÒÔÊǶà¸ö±äÁ¿£¬Ö»ÓÐËùÓеıäÁ¿ÎªÕæµÄʱºò£¬·µ»ØÕæ
empty()¡¾2¡¿
Returns FALSE if var
has a non-empty
and non-zero value.
The following things are considered to be empty:
"" (an em ......
PHPÌṩÁË´óÁ¿µÄÄÚÖú¯Êý£¬Ê¹¿ª·¢ÈËÔ±ÔÚʱ¼äµÄ´¦ÀíÉÏÓÎÈÐÓÐÓ࣬´ó´óÌá¸ßÁ˹¤×÷ЧÂÊ¡£ÎÒÃǽñÌì¾ÍΪѧԱ½éÉÜһЩ³£¼ûµÄPHPÈÕÆÚºÍʱ¼äº¯ÊýÒÔ¼°ÈÕÆÚºÍʱ¼äµÄ´¦Àí¡£
9.1 ³£ÓõÄÈÕÆÚºÍʱ¼ä´¦Àíº¯Êý
±í9-1£º³£ÓõÄÈÕÆÚºÍʱ¼ä´¦Àíº¯Êý
º¯ Êý
˵ Ã÷
checkdate
Ñé֤ʱ¼äº¯Êý£¬ÅжÏʱ¼äÊÇ·ñÓÐЧ£¬ÓÐЧ·µ»Øtrue£¬·ñÔò·µ»Øfa ......