[advanced search]
Results from the most recent live auction are here.
9 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 05-11-2008, 10:25 PM   · #1
peaches017
NP Addict™
 
peaches017's Avatar
 
Name: Peter
Location: .US
Trader Rating: (134)
Join Date: Dec 2005
Posts: 2,950
NP$: 56.00 (Donate)
peaches017 has a reputation beyond reputepeaches017 has a reputation beyond reputepeaches017 has a reputation beyond reputepeaches017 has a reputation beyond reputepeaches017 has a reputation beyond reputepeaches017 has a reputation beyond reputepeaches017 has a reputation beyond reputepeaches017 has a reputation beyond reputepeaches017 has a reputation beyond reputepeaches017 has a reputation beyond reputepeaches017 has a reputation beyond repute
Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Child Abuse Save a Life Child Abuse Breast Cancer SIDS SIDS Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life VA Tech Memorial VA Tech Memorial VA Tech Memorial VA Tech Memorial VA Tech Memorial VA Tech Memorial VA Tech Memorial VA Tech Memorial VA Tech Memorial Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Save a Life Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse
Check Website Resolves?

Is there any script out there that can quickly check if a website is resolving?

I need to input a list of domains in .txt format and it should tell me:

Google.com resolves
SampleName.com doesn't resolve

I would be willing to buy this script or pay to have it coded.

Peter


Please register or log-in into NamePros to hide ads
__________________
.
.
.

peaches017 is offline   Reply With Quote
Old 05-12-2008, 09:35 AM   · #2
Daniel
Danltn.com
 
Daniel's Avatar
 
Name: Daniel Neville
Location: Danltn.com / Nottingham, UK
Trader Rating: (65)
Join Date: May 2007
Posts: 1,185
NP$: 0.56 (Donate)
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
Ethan Allen Fund Ethan Allen Fund
I just wrote this now.

Cba to sort out port 443 too. Simple change if you want to do it.

PHP Code:
<?php

/**
* Danltn | http://danltn.com/
* MSN: msn@danltn.com
* Email: daniel@neville.tk
* Started: 12/5/2008 17:25 (UK)
* Tested: No
* PHP 4/5: Both
* No warranty is given to code used
*/

define('TIMEOUT', 5);
define('UP_MESSAGE', '%s resolves.');
define('DOWN_MESSAGE', '%s doesn\'t resolve.');
define('LINE_BREAK', "<br />\n");
define('EXTRA_FLUSH', true);

/* Timeout -> Int
* Up_message -> Str
* Down_message -> Str
* Line Break -> Str
* Extra_flush -> Bool
*/

if (isset($_POST['submit']))
{
    
$list = (get_magic_quotes_gpc()) ? stripslashes($_POST['list']) : $_POST['list'];
    
$list = str_replace("\r", '', $list);
    
$urls = explode("\n", $list);
    if (
count($urls) > 0)
    {
        while (list(,
$url) = each($urls))
        {
            if (!
$url)
            {
                continue;
            }
            if (
substr($url, 0, 4) === 'http')
            {
                
$url = preg_replace('https?://', '', $url);
            }
            if (@
fsockopen($url, 80, $errno, $errstr, TIMEOUT))
            {
                
printf(UP_MESSAGE, $url);
            }
            else
            {
                
printf(DOWN_MESSAGE, $url);
            }
            echo
LINE_BREAK;
            if (
EXTRA_FLUSH === true)
            {
                
ob_flush();
                
flush();
            }
        }
    }
    die();
}

?>
<form method="post" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>">
    <textarea rows="20" cols="60" name="list"></textarea><br />
    <input type="submit" name="submit" value="Check" />
</form>

Last edited by Daniel : 05-12-2008 at 09:38 AM.
Daniel is offline   Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
http://www.mobisitetrader.com/ free webhosting Traffic Down Under
Advertise your business at NamePros
All times are GMT -7. The time now is 03:10 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0