<html> <head> <title>Ports et protocoles</title> </head> <body> <?php for($i=1;$i<=1024;$i++) { echo "Le port <b>$i</b> est lié au service: " .getservbyport($i, "tcp")."<br/>"; } ?> </body> </html>
<html> <head> <title>Ports et protocoles</title> </head> <body> <?php for($i=1;$i<=1024;$i++) { echo "Le port <b>$i</b> est lié au service: " .getservbyport($i, "tcp")."<br/>"; } ?> </body> </html>