Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

max execution time

Tue Oct 28, 2008 12:20 am

Code:
<?php

   
// Give the script enough time to complete the task
   
ini_set("max_execution_time",120);

   
$rangeStart = 0;
   
$rangeStop = 1024;

   
$target = "www.codemiles.com";

   
$range =range($rangeStart, $rangeStop);
   echo
"<p>Scan results for $target</p>";

   foreach (
$range as $port) {
      
$result = @fsockopen($target, $port,$errno,$errstr,1);
      if (
$result)
         echo
"<p>Socket open at port $port</p>";
   }
?>




Post a reply
  Related Posts  to : max execution time
 query about execution     -  
 Stopping Page Execution     -  
 What Time Is It?     -  
 run time polymorphism     -  
 explode time     -  
 Time countdown     -  
 current system time     -  
 Calculate process time     -  
 time for which a key was kept pressed by user     -  
 Time Stamp with mktime()     -  

Topic Tags

PHP Networking, PHP Date