我是新手php
程序员。我正在开发一个质量cms
探测器应用程序。应用程序运行良好,但我想让它更快。继承我的应用代码:
<form method='post' ><center>
<textarea cols='50' rows='10' name='sites' style="border: 1px dotted #FF0000; " size="32" >
http://www.google.com/
http://wordpress.org/
http://joomla.org/
</textarea><br><br>
<input type='submit' name='tepi' value='Check Sites' ><br>
<?php
if($_POST['tepi']){
$lol = explode("\r\n",$_POST['sites']);
foreach ($lol as $lolz){
$lolz = trim($lolz);
$joomla = @file_get_contents("$lolz/components/com_content/metadata.xml");
if($joomla){
echo "<font color='red' fance='Tahoma' size='4'><a href='$lolz'><font color='red' fance='Tahoma' size='4'>$lolz</font></a> --> is Joomla ! </font><br>";
}
$word = @file_get_contents("$lolz/wp-includes/js/quicktags.js");
if($word){
echo "<font color='blue' fance='Tahoma' size='4'><a href='$lolz'><font color='blue' fance='Tahoma' size='4'>$lolz</font></a> --> is Wordpress ! </font><br>";
}
$vb = @file_get_contents("$lolz/clientscript/vbulletin_ajax_imagereg.js");
if($vb){
echo "<font color='black' fance='Tahoma' size='4'><a href='$lolz'><font color='black' fance='Tahoma' size='4'>$lolz</font></a> --> is vbulletin ! </font><br>";
}
}
}
?>
所以这个脚本是1扫描1.我想要别的东西。我想一次发布一个多线程。将有一个选项设置线程,以便我可以一次扫描10-15个站点。我怎么能这样做?