[PHP]代码
<?php $doman = $argv[1];
$port = $argv[2];
$file = file("url.text");
$file_arr = array();
foreach($file as &$line){
$file_arr[] = trim($line);
}
//print_r($file_arr);
$time1 = time();
for($i=0; $i<100000; $i++){
$random = rand(0,189);
$rand_url = 'http://'.$doman.':'.$port.$file_arr[$random];
$content = file_get_contents($rand_url);
}
$time2 = time();
echo $time2 - $time1;
echo "\n";
使用官方Model Context Protocol PHP SDK将PHP应用程序功能暴露为MCP工具、资源和提示,用于代理工作流。
php免费学习视频:立即使用
踏上前端学习之旅,开启通往精通之路!从前端基础到项目实战,循序渐进,一步一个脚印,迈向巅峰!










