呵呵 搞错啦 asp李没有getWeb
php李谷计也没这个类似的函数
不过要实现上边说的功能
该怎么办?

解决方案 »

  1.   

    $temp=file("http://www.sohu.com");$temp是array型,
    然后你想怎么分析就怎么分析吧~~:)
      

  2.   

    $page = file_get_contents("http://community.csdn.net/Expert/topic/3830/3830735.xml?temp=.7776605");echo $page;
      

  3.   

    $rep  = array('http://panel.qq.com/images','image','http://news.qq.com/images');#将一个文件读入数组。本例中通过 HTTP 从 URL 中取得 HTML 源文件。
    $lines  = file ('http://www.gzuu.com');#在数组中循环,显示 html 的源文件并加上行号。foreach ($lines as $line_num => $line)
    {echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br>\n";}#将 web 页面读入字符串。参见 file_get_contents()。
    $html = implode ('', file ('http://www.gzuu.com'));
    echo $html;
    ?>
      

  4.   

    /////////
    //ASP的//
    /////////
    Function bytes2BSTR(vIn) 
    dim ThisCharCode,strReturn,NextCharCode
    strReturn = "" 
    For i = 1 To LenB(vIn) 
    ThisCharCode = AscB(MidB(vIn, i, 1)) 
    If ThisCharCode < &H80 Then 
    strReturn = strReturn & Chr(ThisCharCode) 
    Else 
    NextCharCode = AscB(MidB(vIn, i+1, 1)) 
    strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) 
    i = i + 1 
    End If 
    Next 
    bytes2BSTR = strReturn 
    End Function set oSend = createobject("Microsoft.XMLHTTP")
    SourceCode = oSend.open ("GET",url,false) 
    oSend.send()