Home  >  Article  >  Backend Development  >  大伙给看看 这段代码如何调试不过去!

大伙给看看 这段代码如何调试不过去!

WBOY
WBOYOriginal
2016-06-13 10:01:09884browse

大伙给看看 这段代码怎么调试不过去!急啊~~
源码:

function   POST_HTTP($host,$query,$others= ' ')
{
        $path=explode( '/ ',$host);
        $host=$path[0];
        unset($path[0]);
        $path= '/ '.(implode( '/ ',$path));
        $post= "POST   $path   HTTP/1.1\r\nHost:   $host\r\n ";
        $post.= "Content-type:   application/x-www-form- ";
        $post.= "urlencoded\r\n${others} ";
        $post.= "User-Agent:   Mozilla   4.0\r\nContent-length:   ";
        $post.=strlen($query). "\r\nConnection:   close\r\n\r\n$query ";
        $h=fsockopen($host,80);
        fwrite($h,$post);
        for($a=0,$r= ' ';!$a;)
        {
        $b=fread($h,8192);
        $r.=$b;
        $a=(($b== ' ')?1:0);
        }
        fclose($h);
        return   $r;
}

------解决方案--------------------
100分呢,散了吧~
------解决方案--------------------
jf
------解决方案--------------------

------解决方案--------------------
jiefen
------解决方案--------------------
up
------解决方案--------------------
来接分
------解决方案--------------------
赶上了 哈哈
------解决方案--------------------
接个分
------解决方案--------------------
jf
------解决方案--------------------
讲讲怎么调的,让大家学习一下!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn