ʹÓà PHPnow ´î½¨ PHP »·¾³[ͼ]
´î½¨ PHP Æäʵ²»ºÜÄÑ£¬Ö»ÊÇÓе㷱Ëö¡£ÒªÊÇ×Ô¼º´î½¨Ò»´Î PHP + MySQL »·¾³ºÜÊÇ·Ñʱ¡£¸üÔãµÄÊÇ£¬ºÜ¶àÐÂÊÖÔÚÅäÖà PHP
ʱ³£³£³öÏÖÕâÑùÄÇÑùµÄÎÊÌâ¡£ÖîÈç mysql À©Õ¹¡¢zend °²×°Ê§°ÜµÈµÈÎÊÌâ¡£Õâʱ£¬ÎÒÃÇÐèÒªÒ»¸ö¿ìËÙ¡¢±ê×¼ÇÒרҵµÄ PHP
Ì×¼þ°ü¡£PHPnow ¾ÍÕâÑùÓ¦Ô˶øÉú£¬ÎªÄã¿ìËٴרҵµÄÐéÄâÖ÷»ú¡£
Óë PHPnow µÄÃû×ÖÒ»Ñù£¬ÈÃÎÒÃÇÒ»Æð PHPNow!
Ê×ÏÈ´Ó http://www.phpnow.org/download.html
ÏÂÔØ ×îаæ PHPnow¡£PHPnow ÓÐÁ½ÖÖ·â×°£¬Ò»ÊÇ exe ×Ô½âѹ°æ£¨ÍƼö£¬±¾ÎÄÕë¶Ô´Ë°æ£©£¬¶þÊÇ´¿ 7z µµ°¸£¨Ã»ÓÐ exe ×Ô½âѹ£©¡£
Ö´ÐÐ PHPnow-1.4.x.exe ³öÏÖÏÂͼËùʾ¡£»Ø³µ¼´¿É¡£
ͼ-1£º½âѹ¶Ô»°¿ò
ÔÚ×Ô¶¯½âѹÍê±Ïºó£¬½«×Ô¶¯Ö´ÐÐ Init.cmd ½øÐгõʼ»¯¶¯×÷¡£Èç ͼ-2 ʾ£º
ÆÚ¼ä¿ÉÄܳöÏÖ·À»ðǽÌáʾ£¬ÇëÔÊÐí¡£
ͼ-2£ºInit.cmd ¹ý³Ì
ͼ-3£º½â³ý·À»ðǽ
Init.cmd Ê®ÃëÖÓ¼´¿ÉÍê³É¡£È«²¿Íê³Éºó£¬½«×Ô¶¯´ò¿ªÄ¬ÈÏÒ³¡£
£¨Èç¹ûûÓУ¬ÊÔÊÔÊÖ¶¯´ò¿ª http://127.0.0.1£©
ͼ-4£º´î½¨³É¹¦
Èç¹ûÄãÖ»Ïë´î½¨Ò»¸öÍøÕ¾£¬ÉÏÃæµÄ»·¾³ÒѾ×ã¹»¡£ºÜ¶¼Ê±ºòÎÒÃÇÐèÒª¿ªÉè¶à¸ö¶ÀÁ¢µÄÍøÕ¾¡£ÀýÈçÂÛ̳ºÍÖ÷Ò³·Ö¿ª¡¢ºÍÅóÓѹ²Ïí·þÎñÆ÷µÈµÈ¡£Õâʱ¾ÍÒªÓõ½ ÐéÄâÖ÷»ú ÁË¡£
ÏÂÃæ˵˵ PHPnow ÐéÄâÖ÷»úµÄʹÓ᣺ܼòµ¥¡£
Ë«»÷Ö´ÐÐ D:\PHPnow\PnCp.cmd £¨¿ÉÄÜÄãµÄ°²×°Â·¾¶²»ÊÇ D:\PHPnow£©£¬ÊäÈë 2 ºó»Ø³µ¡£
°´ÕÕÌáʾÊäÈëн¨ÐéÄâÖ÷»úÐÅÏ¢¡£Èç ͼ-5 Ëùʾ¡£
ͼ-5£º¿ªÉèÐéÄâÖ÷»ú
ÊäÈëÍêÐÅÏ¢»Ø³µºó£¬½«×Ô¶¯ÖØÆô Apache ÒÔ±ãÉúЧ¡£
È»ºó·ÃÎʸղÅÌí¼ÓµÄÓòÃû£¬×¢ÒâÊÂÏȽâÎöºÃÓòÃûÖ¸ÏòÄãµÄ·þÎñÆ÷ IP¡£
Èç¹ûûÓÐÓòÃû»òÕß²»»áÓ㬿ÉÒÔͨ¹ý±à¼ C:\WINDOWS\system32\drivers\etc\hosts À´Ê¹ÓÓÐéÄâÓòÃû”¡£
±¾ÀýÖÐµÄ bbs.test.com ¾ÍÊÇÔÚ “127.0.0.1 localhost” µÄÏÂÒ»ÐÐÌí¼ÓÒ»ÐÐ “127.0.0.1 bbs.test.com” ʵÏֵġ£
ͼ-6£ºÐéÄâÖ÷»ú¿ªÉè³É¹¦
¿ÉÄÜÄ㻹ÐèҪΪÿ¸öÐéÄâÖ÷»ú·ÖÅä MySQL Êý¾Ý¿â£¬ÏÂÃæ½éÉÜÏÂÈçºÎʹÓà phpmyadmin ·ÖÅäÓû§ºÍÊý¾Ý¿â¡£
´ò¿ª http://127.1/phpMyAdmin£»Óà root µÇ½¡£
È»ºóµã»÷ “ȨÏÞ”ÔÙµã»÷ “Ìí¼ÓÐÂÓû§”¡£
ÌîдºÃÐ嵀 Óû§Ãû ºÍ ÃÜÂ룻
Ñ¡ÔñµÚ¶þÏî “Create database with same name and grant all privileges”¡£
ÆäËûµÄ±£³ÖĬÈÏ£»ÐèÒªÌáµÄÊÇ£¬È«¾ÖȨÏ޿ɲ»ÒªÑ¡£¬³ý·Ç±ØÒª£¬·ñÔòÈ«²»Ñ¡¡£
µã»÷ [Ö´ÐÐ] ¼´¿ÉÍê³É¡£ÄÑÃ÷°×¾Í¿´¿´Í¼°É¡£
ͼ-7£ºÌí¼ÓÊý¾Ý¿âÓû§¡£
°Ñ¸Õ²ÅÌí¼ÓµÄÓû§ÃûºÍÃÜ
Ïà¹ØÎĵµ£º
ÀûÓ÷ÉÐÅAPIʵÏÖ¹«Ë¾ÄÚ²¿·¢ËͶÌÐÅ¿ÉÒÔʡϲ»ÉÙÇ®.ÍøÉÏÒ²Óв»ÉÙ·ÉÐÅAPI,µ«¸Ð¾õ²»¿É¿¿,
»¹ÊÇ×Ô¼ºÐ´ÁËÒ»¸ö¼òµ¥µÄAPI.µ÷ÓõØÖ·ÈçÏÂ,²»»á¼Ç¼·ÉÐÅÃÜÂë.
ϲ»¶µÄÅóÓÑ¿ÉÒÔÊÔÊÔ,½áºÏAU3ÓÖдÁ˸öUDF.ÕâÏ·¢¶ÌÐÅ·½±ãºÜ¶àÁË.
http://lab.l4ever.cn/fetion/api/?from=·¢ËÍÊÖ»ú&pw=·ÉÐÅÃÜÂë&to=½ÓÊÕºÅÂë&msg=¶ÌÐÅÄÚÈ ......
apache ¶¯Ì¬±àÒë ±àÒë³Éso ¾²Ì¬±àÒë C ЧÂʸß5% ÏÈÍêÈ«¶¯Ì¬±àÒ룬ȷ¶¨ÐèÒªµÄ ¾²Ì¬±àÒë ºÏÀíʹÓûỰ ¾¡¿ÉÄÜÉٵļÓÔØÍⲿÎļþ ¾¡¿ÉÄÜÉÙµÄÕ¼ÓÃÍⲿ×ÊÔ´ lazyload ³ÙÁ¬½ÓÔçÊÍ·Å ±äÁ¿Ó¦¾¡¿ÉÄܵı£³ÖÒ»ÖÖÀàÐÍ ¸Ä±ä±äÁ¿ÀàÐ͵Äʱºò£¬Ö»»á×Ô¶¯ÔöËùÕ¼ÄÚ´æ ²»»á¼õÉÙ Èçint->float Õ¼¿Õ¼ä±ä´ó float->int ²»»á±äС ......
showmessage()¡¢cpmsg()¡¢showsettings()
ÓÐÁ½¸öglobal.func.php·Ö±ðÔÚincludeÓëadminÀïÃæ¡£
forumdata´æ·Å»º´æ¡¢Ä£°å»º´æ¡¢ÉÏ´«¸½¼þµÈ£¬Òò´ËÊôÐÔ±ØÐëÊÇ777¡£
archiverÓëwap´æ·ÅÁËÁ½¸ö×Óϵͳ£¬·Ö±ðΪËÑË÷ÒýÇæºÍÊÖ»úÓû§×¼±¸µÄ
ÖØмÆËã»ý·ÖµÄÌõ¼þ£¬Óû§¿ÉÒÔ¶¨Òå×Ü»ý·Ö¼ÆË㹫ʽ£¬µ«Ä¬ÈÏÇé¿öÏ£¬×Ü»ý·ÖµÈÓ ......
Ç°ÑÔ£º
¡¡¡¡FCKeidtorÊǸö¹úÍâµÄ¶àÓïÑÔ±à¼Æ÷£¬Äã¿ÉÒÔ¶ÔÆäÅäÖÃÎļþ½øÐмòµ¥ÐÞ¸Äʹ֧֮³ÖÄ¿Ç°³£ÓÃWeb¿ª·¢ÓïÑÔµÄÓ¦Óã¬ÏÂÃæÎҾͽ²½²FCKeditorµÄ×îа汾2.4.2ÔÚphpµÄ¾ßÌåÅäÖùý³Ì£¬Óв»×ãºÍ³ö´íµÄµØ·½£¬»¶ÓÖ¸Õý¡£
¾«¼ò£º
¡¡¡¡ÕýÒòΪÕâ¸ö±à¼Æ÷ÊÇÖ§³Ö¶àÓïÑԵģ¬ËùÒÔÊ×ÏÈÎÒÃÇÕë¶ÔʹÓöÔÆä×öÏàÓ¦µÄÈßÓàÎļþɾ³ý¡£
¡¡¡ ......
ÕÒµ½Ò»¸öÄÜÓÃµÄ ·ÖÏí¸øÄã°É
¸ÕÒѾÔÚ±¾»ú×ö¹ýÈÏÕæ²âÊÔ£¬¾ø¶ÔÎÞÎÊÌâ
£¨±í½á¹¹:
id ±íID£¨Î¨Ò»£©
title ¸÷Àà±êÌâ
flid Àà±ðµÄID £¨´óÀàΪ1 ÖÐÀàΪ2 СÀàΪ3£©
pid ÉÏÀàµÄID£¨´óÀà¾Í¸ú´óÀ࣬Ìá½»ÖÐÀàµÄʱºòÕâµØ·½Ð´´óÀàµÄID£¬ÌύСÀàµÄʱºòдÖÐÀàµÄID£© £©
<?php
$link=mysql_connect("l ......