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

php xamp https ÅäÖÃ

ÒÔÏÂÊÇwindows»·¾³µÄÅäÖãº
 
Ò»¡¢½øÈëapacheµÄbinĿ¼
ÔËÐÐ
set OPENSSL_CONF= openssl.cnf
¡¡¡¡openssl req
-new -nodes -keyout server.key -out server.csr
 
È»ºó³öÏÖ£º
Country Name (2 letter
code):ʹÓùú¼Ê±ê×¼×éÖ¯(ISO)¹úÂë¸ñʽ£¬Ìîд2¸ö×ÖĸµÄ¹ú¼Ò´úºÅ¡£ÖйúÇëÌîдCN¡£
State or Province Name
(full name): Ê¡·Ý£¬±ÈÈçÌîдShanghai
Locality Name (eg, city):
³ÇÊУ¬±ÈÈçÌîдShanghai
Organization Name (eg, company):
×éÖ¯µ¥Î»£¬±ÈÈçÌîд¹«Ë¾ÃûµÄÆ´Òô
Organizational Unit Name (eg, section): ±ÈÈçÌîдIT
Dept
Common Name (eg, your websites domain name): ÐÐʹ SSL
¼ÓÃܵÄÍøÕ¾µØÖ·¡£Çë×¢ÒâÕâÀï²¢²»Êǵ¥Ö¸ÄúµÄÓòÃû£¬¶øÊÇÖ±½ÓʹÓà SSL µÄÍøÕ¾Ãû³Æ ÀýÈç:pay.abc.com¡£ Ò»¸öÍøÕ¾ÕâÀﶨÒåÊÇ£º
abc.com
ÊÇÒ»¸öÍøÕ¾£» www.abc.com
ÊÇÁíÍâÒ»¸öÍøÕ¾£»
pay.abc.com ÓÖÊÇÁíÍâÒ»¸öÍøÕ¾¡£
Email Address: ÓʼþµØÖ·£¬¿ÉÒÔ²»Ìî
A challenge
password: ¿ÉÒÔ²»Ìî
An optional company name:¿ÉÒÔ²»Ìî
 
¶þ¡¢½«Éú³ÉµÄÕâ¶þ¸öÎļþ¿¼µ½confĿ¼ÏÂ
 
Èý¡¢
°ÑLoadModule ssl_module
modules/mod_ssl.soºÍInclude conf/extra/httpd-ssl.confµÄ×¢ÊÍÈ¥µô
 
Ôö¼ÓÒÔÏ´úÂ루·¾¶¸ù¾Ý×Ô¼º»úÆ÷µÄ·¾¶×ߣ©£º
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile conf/server.crt
SSLCertificateKeyFile conf/server.key
DocumentRoot E:\site\curlsmerit\bra
ServerName ecshop.com
</VirtualHost>
 
È»ºó°Ñ<VirtualHost _default_:443>ÕâÕû¶ÎÈ¥µô
 
ËÄ¡¢ÖØÆôapache


Ïà¹ØÎĵµ£º

Apache+MySQL+PHP»·¾³ÅäÖÃ

°æ±¾£ºapache_2.2.6-win32-x86-no_ssl
Ö±½Ó°´Ä¬ÈÏ°²×°£¬°²×°Ê±Òª¹Ø±Õä¯ÀÀÆ÷¸úÏÂÔØÈí¼þ£¬·ñÔò°²×°Íê³Éºó·þÎñÆ÷²»ÄÜÆô¶¯£¬±¨²»ÄÜ°ó¶¨80¶Ë¿ÚµÄ´íÎó¡£Æô¶¯ºóÔÚµØÖ·À¸ÖÐÊäÈë“http://localcast/”»ò“http://127.0.0.1/”£¬Èç¹û¿ÉÒÔ¿´µ½"It Works"£¬ËµÃ÷°²×°³É¹¦¡£
Èç¹ûÐèÒª¸ü¸ÄĬÈÏ·¾¶£¬´ò¿ª“C:\P ......

PHPµÄip2longÓÐbug,É÷ÓÃ

ÏÈ¿´¿´Ï±ßÕâ¶ÎPHP´úÂë¡£Õâ¶ÎʹÓÃip2longº¯Êý£¬¶Ôͬһ¸öIP½øÐÐת»»¡£µ±È»£¬Ò²ÓÐÈËÈÏΪ58.99.011.1ºÍ058.99.011.1Ëã²»ÉϺϷ¨µÄ
IP£¬ÄǾÍReturn£¬´ËÎĶÔÄãûÓаïÖú¡£
ΪʲôҪʹÓôøÇ°µ¼ÁãµÄip£ºÎªÁËÔÚÊý¾Ý¿âÖвéѯ£¬Õâ¸ö¿ÉÒÔÔÚIP¿âÖж¨Î»µ½ipËù¶ÔÓ¦µÄλÖÃÐÅÏ¢¡£ËäȻûÓÐÕûÐ͵ÄIP²éѯЧÂʸߣ¬µ«±Ï¾¹Ö±¹Û°¡¡£
<?php
ech ......

ÖØȼÄãµÄPHP°²È«Ö®»ð

¶ÔÓڽű¾°²È«Õâ¸ö»°ÌâºÃÏñÓÀԶûÍêûÁË£¬Èç¹ûÄã¾­³£µ½¹úÍâµÄ¸÷ÖÖ¸÷ÑùµÄbugtraqÉÏ£¬Äã»á·¢ÏÖÓÐÒ»°ëÒÔÉ϶¼ºÍ½Å±¾Ïà¹Ø£¬ÖîÈçSQL
injection£¬XSS£¬Path Disclosure£¬Remote commands executionÕâÑùµÄ×ÖÑ۱ȱȽÔÊÇ£¬ÎÒÃÇ¿´ÁËÖ®ºóµÄÓÃ;ÄѵÀ½ö½öÊÇ×¥È⼦?¶ÔÓÚÎÒÃÇÏë×öweb°²È«µÄÈËÀ´Ëµ£¬×îºÃ¾ÍÊÇÄÃÀ´Ñ§Ï°
£¬¿ÉÊÇÍòÎï×¥¸ùÔ´£¬ÎÒà ......

php´óÎļþµÄÉÏ´«

1.ʹÓÃPHPµÄ´´Ê¼ÈË Rasmus Lerdorf дµÄAPCÀ©Õ¹Ä£¿éÀ´ÊµÏÖ£¨http://pecl.php.net/package/apc£©
APCʵÏÖ·½·¨£º
°²×°APC£¬²ÎÕÕ¹Ù·½Îĵµ°²×°£¬¿ÉÒÔʹÓÃPECLÄ£¿é°²×°·½·¨¿ìËÙ¼ò½Ý£¬ÕâÀﲻ˵Ã÷
ÅäÖÃphp.ini£¬ÉèÖòÎÊý apc.rfc1867=1 £¬Ê¹APCÖ§³ÖÉÏ´«½ø¶ÈÌõ¹¦ÄÜ£¬ÔÚAPCÔ´Âë˵Ã÷ÎĵµÀïÃæÓÐ˵Ã÷
´úÂë·¶Àý£º
¸´ÖÆPHPÄÚÈݵ½¼ô ......

PHPÈÕ³£¿ª·¢Ð¡¼¼ÇÉ

PHPÅúÁ¿È¡µÃcheckboxµÄÖµ
1¡¢ÃüÃû
<input type='checkbox' name='checkbox[]' value=$dwmyrow[banzhu] />
2¡¢Ê¹ÓÃ
µ±¼Æ»®µ±×÷sqlÖ¸ÁîµÄÒ»²¿·Öʱ£ºÈç¹û²ÎÓë¿ØÖƵÄ×Ö¶ÎÊÇÊýÖµÐ͵ģ¬Ôò
if(! empty($_POST['checkbox'])) {
$expr = join(",", $_POST['checkbox']);
$sql = "select * from tbl_name where field in ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ