I am a newbie php
programmer. I m working on a mass cms
detector app. app is working good, bt i want to make it faster. heres my app code :
<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>";
}
}
}
?>
so this script is scanning 1 by 1. I want something else. i want to post a multiple thread at a time. there will be a option set thread so that i can scan 10-15 site at a time. how can i do that ?