ÈçºÎÓÃphpʵÏÖ×Ô¶¯µÇ¼±ðµÄÍøÕ¾£¿ - PHP / »ù´¡±à³Ì
Óû§ÔÚÎÒµÄÍøÕ¾Éϱ£´æÆäËüÍøÕ¾£¬±ÈÈç163µÄÓû§ÃûºÍÃÜÂ룬ֻҪÔÚÎÒµÄÍøÕ¾Éϵã»÷¡°µÇ¼¡±°´Å¥£¬¾ÍÔÚд°¿ÚÖдò¿ª163µÄÒ³Ãæ²¢ÇÒÊÇÒѵǼµÄ״̬¡£ÇëÎÊÕâ¸öÈçºÎʵÏÖ£¿
ÎÒÓÃsnoopy°´µÇ¼±íµ¥postÊý¾Ý¹ýÈ¥£¬µÇ¼²»ÉÏÈ¥£¬Õâ»áÊÇʲôÔÒòÁË£¿
ÍøվʹÓÃsession»¹ÊÇcookieÑéÖ¤£¬ÎÒÓÃsocket post±íµ¥µÄʱºòÓÐÇø±ðÂð£¿
sessionºÍcookie½áºÏÆðÀ´Óð¡
cookieÀï´æµÄÖµÓësessionÀïµÄ±È¶Ô Ò»Ö¾ÍĬÈϵǼ³É¹¦°¡
¿ÉÄÜÐèÒª°ÑsessionµÄÖµ·Åµ½Êý¾Ý¿âÀï
ÎÒÊÇÕâôдµÄ£ºPHP code:
<?php
session_start();
include "Snoopy.class.php";
$snoopy = new Snoopy;
$submit_url = "http://www.xxxx.com/user/login";
$submit_vars["email"] = "xxx@163.com"; //ÄãµÄÓû§Ãû
$submit_vars["password"] = "xxxx"; //ÄãµÄÃÜÂë
$submit_vars["commit"] = "怬";
$snoopy->submit($submit_url,$submit_vars);
print $snoopy->results;
?>
Ö´ÐÐÁËÕâ¸öÒ³ÃæºóÔÚä¯ÀÀÆ÷Àï´ò¿ªÍøÕ¾£¬ÏÔʾ״̬»¹ÊÇδµÇ¼¡£
°¡ ¿´´íÁË µÇ¼±ðµÄÍøÕ¾¡£¡£¡£ ÎÞÊÓ1L
°ïÄ㶥
ÄãÒªÕÒµ½¶Ô·½±íµ¥µÄactionÁ´½Ó²ÅÐеģ¬Ìá½»µ½ÕÒµ½µÄÁ´½Ó¾Í¿ÉÒÔÁË£¬µ«ÊÇÓÐÑéÖ¤ÂëµÄ¾ÍÓеãÂé·³ÁË£¬»¹ÒªÆƽâÑéÖ¤Âë
¹þ¹þ£¬ÓÐÏë·¨¡£
°´ÕÕ±ðµÄÍøÕ¾µÄ²ÎÊý£¬Ö±½Ó½«Óû§Ãû¡¢ÃÜÂëÌá½»µ½±ðµÄÍøվȥ°¡
Ϊʲôprint $snoopy->results;ºóʲôÄÚÈÝҲûÓÐÊä³öÄØ£¿
Ïà¹ØÎÊ´ð£º
ÔÚfirefoxä¯ÀÀÆ÷ÏÂÕý³£µÇ½£¬µ«ÔÚIE ä¯ÀÀÆ÷ÏÂÎÞ·¨µÇ½£¬Ã¿´Î¶¼»áÖØÐÂÉú³ÉÒ»¸ösession,ÔÀ´µÄÄÚÈݻᶪʧ¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£Ôõô»ØÊÂ......
¾ßÌåÇé¿ö£¿²Â²â¿ÉÄÜÊÇÄã±¾»úIEµÄcookie±»½ûÓÃÁË°É£¬¿ÉÒÔ¿´¿´
cookie Æ ......
ÈçÌ⣬Ôõôд¸öheadÍ·²¿ ÈÃÒ³Ã滺´æ1ÐÇÆÚ¡£
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Äã°ÑÀïÃæµÄʱ¼ä£¬¸Ä³Éµ±Ç°Ê±¼ä¼ÓÉÏÒ»¸öÐÇÆÚ
¼ÇµÃҪת»»³Égmtʱ¼ä
ÎÒÕâÑùдµÄ ²»ÖªµÀÐв»ÐС£
Ò»¸öÐ ......
ÏÖÓÐÒ»PHP¿Õ¼ä£¬Ö§³ÖMYSQLÊý¾Ý¿â
Ϊ½ÚÊ¡·ÑÓã¬ÏÖÏëͨ¹ýÓòÃûתÏòĿ¼ÐÎʽ½øÐйÜÀí£¨¼´½«ÓòÃûA¼Ç¼£Û°üÀ¨¶¥¼¶ÓòÃû¼°¶þ¼¶ÓòÃû£Ý¶¼Ö¸Ïòͬһ¿Õ¼ä£©
È磺·ÃÎÊÓòÃû abcd.cn Ö±½Ó·ÃÎÊÍøÕ¾¸ùĿ¼
·ÃÎʶþ¼¶ÓòÃû ef.abcd.cn ......
ÎÒ×î½üдÁ˸ömailÖ´ÐкóûÓгöÏÖ´íÎóÐÅÏ¢Ö´ÐÐÍê±ÏºóÓÊÏäÀﲢû·¢ËÍÓʼþ£¬Çë¸÷λ°ïÎÒ¿´¿´
ÎÒÓõĵÄÊÇiis smtp
<?php
$to = 'xueyuxia1988@sohu.com';
$subject = 'the subject';
$message = 'hello';
$ ......
ÔÚPHPÖÐÓÐûÓÐÏñASPÖеļǼ¼¯(ADODB.Recordset )ÕâÖÖÀàÐ͵ĶÔÏó?¿É²»¿ÉÒÔÏñÔÚASPÖÐÒ»Ñùͨ¹ý¼Ç¼¼¯À´¸üÐÂÊý¾Ý¿â.ÈçÏÂÃæÕâÑù.
VBScript code:
set rs=server.createobject("adodb.recordset")
......