PHPÖвÉÓÃPOST·½Ê½·¢ËÍÊý¾Ý
×î½üÁ½ÌìÏîÄ¿ÐèÒª£¬ÓÉÓÚ·þÎñÆ÷ÕýÔÚ¿ª·¢£¬¿Í»§¶Ë½ø¶ÈÉÔ¿ìһЩ£¬Ã»ÓзþÎñÆ÷½øÐÐÁªµ÷¡£Òò´ËÎÒÖزپÉÒµ£¬ÓÃPHP¿ìËÙµÄдÁËһЩwebÒ³Ã棬ËãÊǵ±²âÊÔ×®³ÌÐòÁË£¬Æ߰˸öweb½Ó¿Ú£¬»ù±¾ÉÏ5µ½6¸öСʱ¸ã¶¨ÁË¡£ÓÉÓÚµ±Ç°µÄ·þÎñÆ÷ÐèÒªÓëÆäËû·þÎñÆ÷½øÐжԽӣ¬Òò´ËдµÄÕâ¸öweb·þÎñ»¹ÐèÒª³äµ±client½ÇÉ«£¬ÏòÆäËû·þÎñÆ÷·¢ËÍÇëÇó¡£
ÔÚÍøÉÏËÑÁËһϣ¬»ù±¾ÉÏÁ½ÖÖ·½·¨£º£¨×ª×ÔÍøÓÑÎÄÕ£©
1.ͨ¹ýcurlº¯Êý
$post_data
=
array
()
;
$post_data
[
'
clientname
'
]
=
"
test08
"
;
$post_data
[
'
clientpasswd
'
]
=
"
test08
"
;
$post_data
[
'
submit
'
]
=
"
submit
"
;
$url
=
'
http://xxx.xxx.xxx.xx/xx/xxx/top.php
'
;
$o
=
""
;
foreach
(
$post_data
as
$k
=>
$v
)
{
$o
.=
"
$k
=
"
.
urlencode
(
$v
)
.
"
&
"
;
}
$post_data
=
substr
(
$o
,
0
,-
1
)
;
$ch
=
curl_init
()
;
curl_setopt
(
$ch
,
CURLOPT_POST
,
1
)
;
curl_setopt
(
$ch
,
CURLOPT_HEADER
,
0
)
;
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
)
;
//ΪÁËÖ§³Öcookie
curl_setopt
(
$ch
,
CURLOPT_COOKIEJAR
,
'
cookie.txt
'
)
;
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$post_data
)
;
$result
=
curl_exec
(
$ch
)
;
2. ͨ¹ýfsockopen
$URL
=‘
http
:
//xxx.xxx.xxx.xx/xx/xxx/top.php';
$post_data
[
'
clientname
'
]
=
"
test08
"
;
$post_data
[
'
clientpasswd
'
]
=
"
test08
"
;
$post_data
[
'
submit
'
]
=
"
¥í¥°¥¤¥ó
"
;
$referrer
=
""
;
// parsing the given URL
$URL_Info
=
parse_url
(
$URL
)
;
// Building referrer
if
(
$referrer
==
""
)
// if not given use this script as referrer
$referrer
=
$_SERVER
[
"
SCRIPT_URI
"
]
;
// making string from $data
foreach
(
$post_data
as
$key
=>
$value
)
$values
[]
=
"
$key
=
"
.
urlencode
(
$value
)
;
$data_stri
Ïà¹ØÎĵµ£º
TIOBEÊÀ½ç±à³ÌÓïÑÔÅÅÐаñÕ¹ÏÖÁ˱à³ÌÓïÑÔµÄÁ÷ÐÐÇ÷ÊÆ¡£Ã¿¸öÔ£¬¶¼ÓÐ×îеÄÊý¾Ý±»¸üС£Õâ·ÝÅÅÐаñµÄÊý¾ÝÈ¡ÑùÀ´Ô´ÓÚ»¥ÁªÍøÉϸ»ÓоÑéµÄ³ÌÐòÔ±¡¢ÉÌ ÒµÓ¦Óá¢ÖøÃûµÄËÑË÷ÒýÇ棨ÖîÈç¹È¸è¡¢ MSN ¡¢ÑÅ»¢£©µÄ¹Ø¼ü×ÖÅÅÃû¡¢ Alexa ÉϵÄÅÅÃûµÈ¡£Çë×¢ÒâÕâ¸öÅÅÐаñÖ»ÊÇ·´Ó³ÁËij¸ö±à³ÌÓïÑÔµÄÈÈÃÅ³Ì¶È , Õâ²¢²»´ú±íËüÊÇÒ»¸ö×îºÃµÄ±à³ÌÓïÑÔ» ......
1¡¢Ê¹Óþø¶Ô·¾¶°üº¬Îļþ
ÔÚÿ´Î¶ÔÎļþµÄ°üº¬ÖУ¬¶¼Ê¹ÓÃϵͳ¾ø¶Ô·¾¶½øÐаüº¬£¬±ÈÈç require('/var/www/html/inc/test.inc')£»µÄ·½Ê½£¬ÔÚËùÓÐÎļþÖж¼ÕâÑù°üº¬¾Í¿ÉÒÔ±ÜÃâ¶à¼¶°üº¬³öÏÖµÄÎÊÌ⣬µ«ÊÇÕâÖз½Ê½²»Áé»î£¬ÏµÍ³¿ÉÒÆÖ²ÐÔ¼«²î£¬½¨Òé²»²ÉÓá£
2¡¢ÔÚÒ»¸ö¹«ÓÃÎļþÖж¨Ò幫ÓÃÎļþµÄÁÐ±í£¬½«¸÷¸ö¹«ÓÃÎļþµÄ ......
<?php
class SubPages{
private $each_disNums;//ÿҳÏÔʾµÄÌõÄ¿Êý
private $nums;//×ÜÌõÄ¿Êý
private $current_page;//µ±Ç°±»Ñ¡ÖеÄÒ³
private $sub_pages;//ÿ´ÎÏÔʾµÄÒ³Êý
private $pageNums;//×ÜÒ³Êý
private $page_array = array();//ÓÃÀ´¹¹Ôì·ÖÒ³µÄÊý×é ......
1.ʹÓà ip2long() ºÍ long2ip() º¯ÊýÀ´°Ñ IP µØַת»¯³ÉÕûÐÍ´æ´¢µ½Êý¾Ý¿âÀï¡£ÕâÖÖ·½·¨°Ñ´æ´¢¿Õ¼ä½µµ½Á˽ӽüËÄ·ÖÖ®Ò»£¨char(15) µÄ 15 ¸ö×Ö½Ú¶ÔÕûÐ뵀 4 ¸ö×Ö½Ú£©£¬¼ÆËãÒ»¸öÌض¨µÄµØÖ·ÊDz»ÊÇÔÚÒ»¸öÇø¶ÎÄÚÒ³¸ü¼òµ¥ÁË£¬¶øÇÒ¼Ó¿ìÁËËÑË÷ºÍÅÅÐòµÄËٶȣ¨ËäÈ»ÓÐʱ½ö½öÊÇ¿ìÁËÒ»µã£©¡£
2.ÔÚÑéÖ¤ email µØÖ·µÄʱºòʹÓà checkdnsrr() º ......