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

php»ñÈ¡ÍøÕ¾µÄÄÚÈÝ(SSL,GET,POSTÐÎʽ¶¼ÄÜ»ñÈ¡µ½)!

·â×°Ò»¸öfunction£¬ÒԱ㸴Óá£
Ö§³Öhttps£¬»òÕßhttpµÄget»òÕßpost¡£
function httpURLfeedback($url,$request_type,$time_out = "60") {
$arr = parse_url($url);
$transports = "";
$port = 0;
$host = $arr['host'];
$query = $arr['query'];
$path = $arr['path'];
if($urlarr["scheme"] == "https") {
$transports = "ssl://";
$port = "443";
} else {
$transports = "tcp://";
$port = "80";
}
$fp=@fsockopen($transports.$host,$port,$errno,$errstr,$time_out);
if(!$fp) {
die("ERROR: $errno - $errstr<br />\n");
} else {
$out = "";
if($request_type == 'get'){
$out .= "GET $path?$query HTTP/1.1\r\n";
$out .= "Host: $host\r\n";
$out .= "Connection: Close\r\n\r\n";
}else {
$out .= "POST $path HTTP/1.1\r\n";
$out .= "Host: $host\r\n";
$out .= "Content-type: application/x-www-form-urlencoded\r\n";
$out .= "Content-length: ".strlen($query)."\r\n";
$out .= "Connection: Close\r\n\r\n";
$out .= $query. "\r\n\r\n";
}
fwrite($fp,$out);
while(!feof($fp)) {
echo @fgets($fp, 1024);
}
fclose($fp);
}
}
httpURLfeedback("http://www.baidu.com/s?wd=wwe",'get');


Ïà¹ØÎĵµ£º

fckeditorÔÚPhpÖÐÅäÖÃÏê½â

 Ç°ÑÔ£º
¡¡¡¡FCKeidtorÊǸö¹úÍâµÄ¶àÓïÑԱ༭Æ÷£¬Äã¿ÉÒÔ¶ÔÆäÅäÖÃÎļþ½øÐмòµ¥ÐÞ¸Äʹ֧֮³ÖÄ¿Ç°³£ÓÃWeb¿ª·¢ÓïÑÔµÄÓ¦Óã¬ÏÂÃæÎҾͽ²½²FCKeditorµÄ×îа汾2.4.2ÔÚphpµÄ¾ßÌåÅäÖùý³Ì£¬Óв»×ãºÍ³ö´íµÄµØ·½£¬»¶Ó­Ö¸Õý¡£
¾«¼ò£º
¡¡¡¡ÕýÒòΪÕâ¸ö±à¼­Æ÷ÊÇÖ§³Ö¶àÓïÑԵģ¬ËùÒÔÊ×ÏÈÎÒÃÇÕë¶ÔʹÓöÔÆä×öÏàÓ¦µÄÈßÓàÎļþɾ³ý¡£
¡¡¡ ......

phpÓëjavascriptÖ®¼ä±äÁ¿ÒýÓÃÎÊÌâ

JavaScript ==> PHP£º
·½·¨Ò»: ÏÈÓÃPHPÉú³Éjs´úÂ룬Ȼºóͨ¹ýä¯ÀÀÆ÷µÄ×Ô¶¯Ë¢Ð£¬½«javascript±äÁ¿´«µÝµ½PHP½Å±¾ÖС£
            ×¢Ò⣺ÔÚʵ¼ÊÓ¦ÓÃÖÐÒª·ÀÖ¹Óû§ÔÚµØÖ·À¸ÄÚ¸ü¸Ä´«µÝµÄ±äÁ¿Öµ¡£
<?php
if($qq) echo $qq.'<br>';
else echo "<scrip ......

php ³£Óú¯Êýѧϰ1

 __FILE__     ·µ»Øµ±Ç° ·¾¶+ÎļþÃû
 dirname(__FILE__) ·µ»Øµ±Ç°Îļþ·¾¶µÄ ·¾¶²¿·Ö
 dirname(dirname(__FILE__));µÃµ½µÄÊÇÎļþÉÏÒ»²ãĿ¼Ãû£¨²»º¬×îºóÒ»¸ö“/”ºÅ£© ......

php¶Ôsql injectionµÄ·À·¶

¶Ôhttp request¹ýÀ´µÄÊý¾Ý£¬·²ÊǺ¬Óе¥ÒýºÅ£¬Ë«ÒýºÅ£¬·´Ð±Ïߵȶ¼½øÐмÓбÏß´¦Àí¡£·ÀÖ¹½øÐÐ×¢Èë²Ù×÷¡£
/*
¶ÂSQL©¶´
*/
function quotes($content){

//Èç¹ûmagic_quotes_gpc=Off£¬ÄÇô¾Í¿ªÊ¼´¦Àí
if (!get_magic_quotes_gpc()) {
//ÅжÏ$contentÊÇ·ñΪÊý×é
if (is_array($content)) {
//Èç¹û$contentÊÇ ......

Ìṩһ¸öPHPͨÓ÷ÖÒ³Function¸ø´ó¼Ò

function mysql_conn(){
$conn=mysql_pconnect('localhost','root','root');
mysql_select_db('liuyan');
mysql_query('set names utf8');
return $conn;
}
//$sqlΪSQLÓï¾ä£»$pageΪµÚ¼¸Ò³£¬$pagesizeΪһҳÏÔʾ¶àÉÙÌõ
//×îºó½«·µ»ØÒ»¸öarrayµÄÊý¾ÝÀàÐÍ,ÀïÃæ°üº¬$arr['result']£¬$arr['fypage']
function page ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ