PHP Port Checker
PHP Code
+ 4 likes
Please Register to submit score.
| Average Score | 8.0 (of 6 scores) |
| Date Added | Nov 30, 2008 |
| Last Updated | Dec 05, 2008 |
| Tags | checker domain file frostwire help ip jonesy jonesy44 limewire microtorrent php port server test torrent utorrent website |
Introduction
In basic, if a socket is openned, it has connected. If it times out (2-3 seconds) it fails. You can edit the timeout in the fsockopen line, the last paramater is the timeout in seconds
Tested in Firefox. Report any bugs. Feel free to use wherever you need it.
Can now scan a range of ports!
Warning: A wide range of ports WILL take a long time to load the page.
Screenshot
PHP Snippet:
PHP Port Checker
Posted on Nov 30, 2008 1:53 pm
Posted on Nov 30, 2008 1:53 pm
Note: To test localhost, use 127.0.0.1 rather than "localhost" and of course port "80" The default is set to test your IP on port 80
PHP Snippet:
PHP Port Checker
Posted on Nov 30, 2008 9:33 pm
Posted on Nov 30, 2008 9:33 pm
Simple enough and the interface is clean, but the only complaint I have is with the HTML being mixed into the PHP. A simple template system or just closing your <?php ?> tag is easier to maintain in the long run.
PHP Snippet:
PHP Port Checker
Posted on Nov 30, 2008 10:38 pm
Posted on Nov 30, 2008 10:38 pm
What i would add next, is a feature to scan a range of ports, or persific ports... i.e. scan ports inbetween, and including port 80-100 or just scanning port 80 and 100..... the limitations are to what you see fit, but its what others may find handy...
Rating: 7/10
Like: +Like
Rating: 7/10
Like: +Like
PHP Snippet:
PHP Port Checker
Posted on Dec 1, 2008 11:14 am
Posted on Dec 1, 2008 11:14 am
Thanks for the replies, i try and keep a clean interface, Hawkee. and yes, possibly a bad habit of integrating HTML with PHP, but i find it sometimes easier to maintain rather than using the two seperately.
I will see what i can do FURBY, might take a while to scan the ports, so perhaps some nice JS & Ajax will come in handy to make a nicer interface.
Thanks for the ratings & +Likes :]
I will see what i can do FURBY, might take a while to scan the ports, so perhaps some nice JS & Ajax will come in handy to make a nicer interface.
Thanks for the ratings & +Likes :]
PHP Snippet:
PHP Port Checker
Posted on Dec 2, 2008 12:03 pm
Posted on Dec 2, 2008 12:03 pm
Who rated this down :-[
PHP Snippet:
PHP Port Checker
Posted on Dec 2, 2008 6:40 pm
Posted on Dec 2, 2008 6:40 pm
It already had a rating of 5 when i rated it a 7, so no one ;)
PHP Snippet:
PHP Port Checker
Posted on Dec 3, 2008 9:56 pm
Posted on Dec 3, 2008 9:56 pm
/me rates 10 / 10 and +likes :)
can you make it to be centered in the web page ?
that would be really neat.
can you make it to be centered in the web page ?
that would be really neat.
PHP Snippet:
PHP Port Checker
Posted on Dec 4, 2008 11:14 am
Posted on Dec 4, 2008 11:14 am
of course, jus put "<center>" tags around it ;)
I'm working on a port range scanner next. i'll keep yah updated :]
I'm working on a port range scanner next. i'll keep yah updated :]
PHP Snippet:
PHP Port Checker
Posted on Dec 5, 2008 11:44 am
Posted on Dec 5, 2008 11:44 am
Can now scan a range of ports!
Warning: A wide range of ports WILL take a long time to load the page.
Warning: A wide range of ports WILL take a long time to load the page.
PHP Snippet:
PHP Port Checker
Posted on Dec 5, 2008 7:35 pm
Posted on Dec 5, 2008 7:35 pm
| Code: |
else if ($_GET["port"] && $_GET["port2"]) { $p1 = $_GET["port"]; $p2 = $_GET["port2"]; if ($p1 == $p2) { $fp = @fsockopen($addr, $port, $errno, $errstr, 2); |
sorry, but where is $port set?
should check to see if $_GET['port'] and $_GET['port2'] is numeric
| Code: |
if (is_numeric($_GET['port']) && is_numeric($_GET['port2'])) { |
besides that, not bad....
PHP Snippet:
PHP Port Checker
Posted on Dec 6, 2008 2:23 am
Posted on Dec 6, 2008 2:23 am
$_GET["port"] is set when you hit submit on the form, along with port2. it's a good idea, i'll checkit out furbs :P
PHP Snippet:
PHP Port Checker
Posted on Dec 6, 2008 2:25 am
Posted on Dec 6, 2008 2:25 am
Sorry, misread youor question, $port is set at the top of the script.
PHP Snippet:
PHP Port Checker
Posted on Dec 28, 2008 1:22 am
Posted on Dec 28, 2008 1:22 am
cool this script really work lolololol!!!!!!!!!!!!!!!!!!!!!!!!!!
PHP Snippet:
PHP Port Checker
Posted on Feb 6, 2009 10:43 am
Posted on Feb 6, 2009 10:43 am
Thanks A^1^T^E^A^M, and ProIcons for the +Likes :)
PHP Snippet:
PHP Port Checker
Posted on Feb 6, 2009 6:20 pm
Posted on Feb 6, 2009 6:20 pm
And zmodem too i guess :D
PHP Snippet:
PHP Port Checker
Posted on May 31, 2009 7:05 am
Posted on May 31, 2009 7:05 am










