php curlʱºòµÃ²»µ½cookie - PHP / »ù´¡±à³Ì
PHP code:
$cookie_jar = tempnam('./htdocs','cookie');
$curlPost = "username=tengkyky&passwod=yanyan2&mem_pass=on";
$ch = curl_init();
$my_url = 'https://passport.baidu.com/?login';
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_jar);
curl_setopt($ch,CURLOPT_URL,$my_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$curlPost);
ob_start();
curl_exec ($ch);
ob_end_clean();
curl_close ($ch);
unset($ch);
Õâ¸öÊǰٶȵǽµÄ£¬ÎÒÏëÈ¡ËûµÄCOOKIE¡£
µ«ÊÇÔËÐÐÏÂÀ´£¬Ã»Õâ¸öCOOKIEÎļþ
Ö»ÊÇΪÕÒCOOKIEÓÐʲô°ì·¨
ÕâôÍíÁË£¬¸ÃÐÝÏ¢ÁË£¬Ëµ²»¶¨Ë¯Ò»¾õ¾Í½â¾öÁË¡¡¿ÉÒÔ°Ñ´úÂë¶¼Ìù³öÀ´Âð£¿
{{
Ïà¹ØÎÊ´ð£º
ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌø×ªÒ³Ãæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......
ÎÒ×î½üдÁ˸ömailÖ´ÐкóûÓгöÏÖ´íÎóÐÅÏ¢Ö´ÐÐÍê±ÏºóÓÊÏäÀﲢû·¢ËÍÓʼþ£¬Çë¸÷λ°ïÎÒ¿´¿´
ÎÒÓõĵÄÊÇiis smtp
<?php
$to = 'xueyuxia1988@sohu.com';
$subject = 'the subject';
$message = 'hello';
$ ......
¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿
»òÕßÔÚjsÎļþÀïµ÷ÓÃphpÎļþдµÄseesion£¿
PHP¸ÕÈëÃÅѧϰ,ÓÑÇé¶¥Ò»¸ö
¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿
//echo '<script>alert("ok");< ......
ÊÇÓñðÈËдµÄÀà×öµÄ£¬»¹ÔʱÌáʾYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO admin(seq,passwd,type,n ......