PHP Portscanner

Code:
<?php

    /*Port Scanner By The Merchant_ofMenace*/

        $host = $_POST['host'];

        $sport = $_POST['sport'];

            $eport = $_POST['eport'];

                                        

        echo "<form method='post' action='portscanner.php'>";

        echo "Hostname: <input type='text' name='host'/>
";

        echo "First Port : <input type='text' name='sport'/>";

        echo "Final Port : <input type='text' name='eport'/>
";

        echo "<input type='submit' value='scan'/></form>";

                                            

        if (isset($host) && strlen($host)>=1)

            {

                while ($eport >= $sport)

                    {

                        if (@fsockopen($host, $sport))

                            {

                                echo "Port: " .  $sport . " is open at " . $host;

                            }else {

                                echo "Port: " .  $sport . " is not open at " . $host;

                                }

                            echo "
";

                            }

                    $sport++;

                                                    }

?>