soap.php
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· PHP 代码 · 共 30 行
PHP
30 行
<?php header("Content-Type: text/html; charset=utf-8;");?><html><head><title>PHP und SOAP</title></head><body><?php $client = new SoapClient('http://api.google.com/GoogleSearch.wsdl'); $apikey="apikey hier einsetzen"; $searchfor="xampp"; $result = $client->doGoogleSearch($apikey, $searchfor, 0, 10, false, '', true, '', '', ''); echo "Gefundene Seiten: ".$result->estimatedTotalResultsCount; echo "<ol>"; foreach ($result->resultElements as $hit) { echo "<li><a href=\"".$hit->URL."\">".$hit->title."</a>"; echo "<br>".$hit->snippet; } echo "</ol>";?></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?