Welcome to the largest and most talked about domain name forum in the World!

We are NamePros, the award-winning free community for domain name owners, buyers and website developers. Once registered, you can:
  • Post your domains for sale or for free appraisals.
  • Private message and conduct business with other domain owners.
  • View member-only forums such as 'Legal Issues' and 'Expired Domains' (NOT visible to search engines)
  • Free access our archives of posts
Join now for free


Go Back   NamePros.com > Discussion > Web Design & Development > Programming > CODE
New! Use your Facebook, Google, AIM & Yahoo accounts to securely log into this site, click logo to login  

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.



Reply
 
LinkBack (2) Thread Tools
Old 01-13-2007, 07:42 PM   2 links from elsewhere to this Post. Click to view. #1 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Thumbs up PHP: Bulk domain availability check! [UPDATED]

This is something i was going to start however i don't really have time, so i have whipped up a quick script for you guys to use on your own site or just for personal use.

The script has been tested quickly tonight as i want to go to bed lol. I hope it is of some use.

Demo: http://www.mattjewell.com/namepros/dnlookup/index.php


UPDATED CODE (Revision 6): (18/02/07)


Download everything here!

.ORG support removed due to a block from the WHOIS server (PIR)

- .pt support fixed!

- Added "save results as text file" feature - requested.

- Code shortened

- Added .in support
- Bug fixes

- Added .tv domain support - requested

- Other bug fixes (again )

- Will now output result before checking next domain (much faster)
- Added .mobi support - requested

- Other bug fixes

PHP Code:
<?php
set_time_limit
(0);
ob_start();
/*     --------    Bulk domain availablity check script (Revision 4) ------------        
[                                                                                    
[     Created by "Matthew." (45276) @ http://namepros.com / http://mattjewell.com        
[    Feel free to modify/use however you wish,                                        
[    but keep credit comments in upon distribution.                                
*/

include 'inc/dnservers.php';

function 
save_file($status
{
    global 
$filename$domain$extension;
    
    
$domain trim($domain);
    
    
$file_handle fopen($filename "_$status.txt"'a+') or trigger_error('Cannot open or create file (chmod?)'E_USER_WARNING);
    
    if(
$status == 'invalid' && $extension == 'org') { $status .= ' (.org WHOIS prevents request)'; }
                
    if(!
fwrite($file_handle$domain " is $status\n"))
    {
        
trigger_error('Results for ' $domain ' could not be written.'E_USER_WARNING);
    }
    
    
fclose($file_handle);    
}

function 
return_status($domain$status)
{    
    global 
$extension$filename;

    
    
$file $filename;
    
$domain trim($domain);
    
    if(isset(
$_POST['save']))
    {
            
save_file$status );
    }
    else
    {    
        
$color = ($status == 'available') ? 'green' 'red';
        if(
$status == 'invalid' && $extension == 'org') { $status .= ' (.org WHOIS prevents request)'; }    
            
        echo 
"<div style=\"color: $color\">$domain is $status!</div>";
    }
}    
    
if(isset(
$_POST['submit']))
{
    
$filename 'saves/' mt_rand(59999999999);
        
    if(
strlen($_POST['domains']) > 0)
    {

        
$domains explode("\n"$_POST['domains']);
        
        echo 
'<h1>Checking ' count($domains) . ' domains</h1><br />';
        echo (isset(
$_POST['save'])) ? 'Preparing results, please wait...<br /><br />' null;
        
        foreach(
$domains as $domain)
        {
            unset(
$buffer); // clean buffer - prevents problems
                    
            // (replaced str_replace)    
            
preg_match('@^(http://www\.|http://|www\.)?([^/]+)@i'$domain$matches);
            
$domain $matches[2];
            
            
$tld explode('.'$domain2);
            
$extension strtolower(trim($tld[1]));
            
            if(
strlen($domain) > && array_key_exists('.' $extension$ext))
            {
                
$server $ext['.' .$extension][0];
                
                
$sock fsockopen($server43) or die('Error Connecting To Server:' $server);
                
fputs($sock"$domain\r\n");
                
                while( !
feof($sock) )
                {
                      
$buffer .= fgets($sock,128);
                }
            
                
fclose($sock);
                if(
$extension == 'org') echo nl2br($buffer);
                
                if(
eregi($ext['.' $extension][1], $buffer)) { return_status($domain'available'); }
                
                else { 
return_status($domain'taken'); }
            }
            else
            {
                if(
strlen($domain) > 0)     { return_status($domain'invalid'); }
            }
        
            
ob_flush(); // output before checking next domain
            
flush();
            
sleep(0.1);
        }
        
        if(isset(
$_POST['save']) && count($domains) > 0)
        {
            echo 
'Check completed, your results can be found below:';
        
            if(
file_exists($filename '_available.txt'))
            {
                echo 
'<br /><a href="' $filename '_available.txt">Available domains</a>';
            }
            
            if(
file_exists($filename '_taken.txt'))
            {
                echo 
'<br /><a href="' $filename '_taken.txt">Taken domains</a>';
            }
            else
            {
                echo 
'<br />0 taken domains found';
            }
            
            if(
file_exists($filename '_invalid.txt'))
            {
                echo 
'<br /><a href="' $filename '_invalid.txt">Invalid domains (could not be checked)</a>';
            }
        }    
    }
    else
    {
        echo 
'You need to enter one or more domains!';
    }

else
{
    
?>
<div style="text-align: center">
    <form action="index.php" method="post">
        <textarea name="domains" cols="100" rows="20"></textarea>
        <br /><input type="checkbox" name="save" value="save" /> Save results as text file?<br />
        <br /><input type="submit" name="submit" value="Check Availability" style="font-size: 30pt;" />
        
    </form>
</div>
    <?php
}
?>

Instructions:

Unzip, Upload, CHMOD "saves" to 777, use!



Supported extensions are:

.com
.net
.biz
.info
.co.uk
.co.ug
.or.ug
.nl
.tv
.mobi
.in

.ro
.com.au
.ca
.org.uk
.name
.us
.ac.ug
.ne.ug
.sc.ug
.ws
.be
.com.cn
.net.cn
.org.cn
.no
.se
.nu
.com.tw
.net.tw
.org.tw
.cc
.pl
.pt

It is not coded well but this was started very early in the morning so i have an excuse lol. It works so hey

Enjoy.

Last edited by Matthew.; 02-18-2007 at 09:05 AM.
Matthew. is offline   Reply With Quote
Old 01-13-2007, 09:01 PM   #2 (permalink)
 
kleszcz's Avatar
 
Join Date: Jul 2006
Posts: 4,375
739.75 NP$ (Donate)

kleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatness


Marrow Donor Program Multiple Sclerosis
Hey, that's cool! Install and comment later.
kleszcz is offline   Reply With Quote
Old 01-14-2007, 10:53 AM   #3 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by kleszcz
Hey, that's cool! Install and comment later.
Great, simple install - just download and upload both files
Matthew. is offline   Reply With Quote
Old 01-14-2007, 10:57 AM   #4 (permalink)
Senior Member
 
ahtum's Avatar
 
Join Date: May 2006
Posts: 1,297
1,500.58 NP$ (Donate)

ahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud of
Send a message via AIM to ahtum


Ethan Allen Fund Find Marrow Donors!
Originally Posted by Matthew.
Great, simple install - just download and upload both files
And rename them from .txt to .php
ahtum is offline   Reply With Quote
Old 01-14-2007, 10:59 AM   #5 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by ahtum
And rename them from .txt to .php
true, I forgot i renamed them actually. NP wouldn't allow me to upload .php obviously
Matthew. is offline   Reply With Quote
Old 01-18-2007, 11:54 AM   #6 (permalink)
Senior Member
 
Join Date: Jul 2006
Location: Montevideo, Uruguay
Posts: 1,593
374.55 NP$ (Donate)

mtorregiani is a splendid one to beholdmtorregiani is a splendid one to beholdmtorregiani is a splendid one to beholdmtorregiani is a splendid one to beholdmtorregiani is a splendid one to beholdmtorregiani is a splendid one to beholdmtorregiani is a splendid one to behold


Cancer Survivorship
Thanks
It rock!!!

Rep Added
PS: Can I use it on my blog? You'll get a free link... PM me if interested
mtorregiani is offline   Reply With Quote
Old 01-19-2007, 02:24 AM   #7 (permalink)
 
kleszcz's Avatar
 
Join Date: Jul 2006
Posts: 4,375
739.75 NP$ (Donate)

kleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatness


Marrow Donor Program Multiple Sclerosis
Thanks. Really useful script.
kleszcz is offline   Reply With Quote
Old 01-19-2007, 05:43 AM   #8 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by mtorregiani
Thanks
It rock!!!

Rep Added
PS: Can I use it on my blog? You'll get a free link... PM me if interested
Thanks mtorregiani, You may use it wherever you want! No link required
Matthew. is offline   Reply With Quote
Old 01-19-2007, 01:36 PM   #9 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Code has been updated!

The code now outputs the result of the domain check before checking the next one which means real time results!


Demo: http://www.mattjewell.com/dnlookup/index.php

Thanks to those who have rep'd, appreciated

Example list to check:
Quote:
falchion.info
unworthy.info
grandpiano.cc
cannibal.cc
hotwings.cc
newtestament.biz
charityfund.info
channelzero.info
zinfandel.cc
tophost.cc
roadconditions.biz
newtestament.cc
boombox.cc
hyperactive.cc
rejected.cc
babytalk.cc
playhouse.cc
mooncycles.info
restitution.cc
nightmares.cc
doorprize.net
doorprizes.net
Matthew. is offline   Reply With Quote
Old 01-19-2007, 03:39 PM   #10 (permalink)
Senior Member
 
Cyberian's Avatar
 
Join Date: Apr 2004
Location: NorCal
Posts: 4,531
4,241.01 NP$ (Donate)

Cyberian has a reputation beyond reputeCyberian has a reputation beyond reputeCyberian has a reputation beyond reputeCyberian has a reputation beyond reputeCyberian has a reputation beyond reputeCyberian has a reputation beyond reputeCyberian has a reputation beyond reputeCyberian has a reputation beyond reputeCyberian has a reputation beyond reputeCyberian has a reputation beyond reputeCyberian has a reputation beyond repute

Member of the Month
January 2006Member of the Month
July 2006

Matthew, OUTSTANDING share!!!! Rep up'd

EDIT: Sorry I'm at my limit giving rep for today, but I'll catch up tomorrow.
__________________
Remember who your loyalties are divided between,
and choose for the right reasons who deserves them.
Cyberian is offline   Reply With Quote
Old 01-19-2007, 03:46 PM   #11 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by ~ Cyberian ~
Matthew, OUTSTANDING share!!!! Rep up'd

EDIT: Sorry I'm at my limit giving rep for today, but I'll catch up tomorrow.
Thanks ~ Cyberian ~, truly appreciated (im not fussed about the rep, whenever )
Matthew. is offline   Reply With Quote
Old 01-19-2007, 04:17 PM   #12 (permalink)
Senior Member
 
deu12000's Avatar
 
Join Date: Jun 2004
Posts: 1,459
1,775.40 NP$ (Donate)

deu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant futuredeu12000 has a brilliant future



This is a great script! Rep given. Thanks.
deu12000 is offline   Reply With Quote
Old 01-19-2007, 04:44 PM   #13 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by deu12000
This is a great script! Rep given. Thanks.
Thanks!

Code updated, bug fixed.
Matthew. is offline   Reply With Quote
Old 01-20-2007, 02:24 AM   #14 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Update to dnservers.txt (attached file)

.MOBI Support added!
Matthew. is offline   Reply With Quote
Old 01-20-2007, 02:43 AM   #15 (permalink)
Senior Member
 
champ_rock's Avatar
 
Join Date: Oct 2006
Location: http://akshayjain.org
Posts: 2,811
5,739.05 NP$ (Donate)

champ_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond repute
Send a message via MSN to champ_rock Send a message via Yahoo to champ_rock



is there any way so that the result will be added to a text file automatically?
champ_rock is offline   Reply With Quote
Old 01-20-2007, 02:46 AM   #16 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by champ_rock
is there any way so that the result will be added to a text file automatically?
Sure thing, i am now going out for the day however if you will wait until about 7/8 GMT then i will get it up for you
Matthew. is offline   Reply With Quote
Old 01-20-2007, 02:52 AM   #17 (permalink)
Senior Member
 
champ_rock's Avatar
 
Join Date: Oct 2006
Location: http://akshayjain.org
Posts: 2,811
5,739.05 NP$ (Donate)

champ_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond repute
Send a message via MSN to champ_rock Send a message via Yahoo to champ_rock



thanks

plus one more suggestion.. you can add 2 text files.. one for the taken domains and the other for the available ones.. if it is not too much of a coding task..

adding some reps
champ_rock is offline   Reply With Quote
Old 01-20-2007, 05:22 AM   #18 (permalink)
DJ
Senior Member
 
DJ's Avatar
 
Join Date: Dec 2004
Location: .be
Posts: 1,320
207.77 NP$ (Donate)

DJ is a splendid one to beholdDJ is a splendid one to beholdDJ is a splendid one to beholdDJ is a splendid one to beholdDJ is a splendid one to beholdDJ is a splendid one to beholdDJ is a splendid one to beholdDJ is a splendid one to behold
Send a message via MSN to DJ


Save a Life
Matt, excellent script, been looking for this for ages!

One tiny suggestion, please add support for .tv

Thanks again and rep coming your way!
__________________
DomainNameNews.biz | ImageUnload.com | SurfAnySite.com | UpLoads.cc | H.TL

Online Portfolio | Names For Sale @ domainnamez.org | Under Construction
DJ is offline   Reply With Quote
Old 01-20-2007, 06:08 AM   #19 (permalink)
Senior Member
 
champ_rock's Avatar
 
Join Date: Oct 2006
Location: http://akshayjain.org
Posts: 2,811
5,739.05 NP$ (Donate)

champ_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond repute
Send a message via MSN to champ_rock Send a message via Yahoo to champ_rock



i just checked about 2000domains in abou 2 minutes .. thanks a lot
__________________
Akshay Jain
......................
champ_rock is offline   Reply With Quote
Old 01-20-2007, 07:05 AM   #20 (permalink)
NamePros Regular
 
Join Date: May 2006
Location: London, UK
Posts: 691
6.50 NP$ (Donate)

vincenzo is a splendid one to beholdvincenzo is a splendid one to beholdvincenzo is a splendid one to beholdvincenzo is a splendid one to beholdvincenzo is a splendid one to beholdvincenzo is a splendid one to behold



Originally Posted by champ_rock
is there any way so that the result will be added to a text file automatically?
May I kindly suggest this be an option rather than default - i.e. 'download output as text file link' please?

Also, another vote for .TV support

Wicked little script Matthew, well done.
Rep added.

- Vince
vincenzo is offline   Reply With Quote
Old 01-20-2007, 10:41 AM   #21 (permalink)
NamePros Regular
 
tansks's Avatar
 
Join Date: Dec 2004
Location: Penang, Malaysia
Posts: 809
2,218.80 NP$ (Donate)

tansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nice



You are great. rep added.
__________________
Price comparison
Skincare and perfume
Search product, compare price and spec then visit store
tansks is offline   Reply With Quote
Old 01-20-2007, 11:31 AM   #22 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Wow this topic took off while i was away lol.

Okeysss,
Quote:
plus one more suggestion.. you can add 2 text files.. one for the taken domains and the other for the available ones.. if it is not too much of a coding task..
Sure thing, this will hopefully get done tonight, it's only a small adjustment however I'm a little tired out and have work to do But I'll try my best!

Quote:
i just checked about 2000domains in abou 2 minutes ..
Awesome I haven't tried how many it can handle, theoretically it's unlimited however depending on config the server will end the script at some point.

Quote:
May I kindly suggest this be an option rather than default - i.e. 'download output as text file link' please?
Wouldn't dream of anything else

I will look into adding .TV support as well

Thanks for all the kind comments and rep guys
Matthew. is offline   Reply With Quote
Old 01-20-2007, 11:43 AM   #23 (permalink)
NamePros Regular
 
Join Date: May 2006
Location: London, UK
Posts: 691
6.50 NP$ (Donate)

vincenzo is a splendid one to beholdvincenzo is a splendid one to beholdvincenzo is a splendid one to beholdvincenzo is a splendid one to beholdvincenzo is a splendid one to beholdvincenzo is a splendid one to behold



Hi Matthew,
Just one last thing. As the list of tld's is quite long, and to save alittle on server processing, why not have them as tickboxes?

Many people would only be interested in checking a few of those tld's anyway?

Many thanks again.

- Vince
vincenzo is offline   Reply With Quote
Old 01-20-2007, 11:51 AM   #24 (permalink)
Senior Member
 
champ_rock's Avatar
 
Join Date: Oct 2006
Location: http://akshayjain.org
Posts: 2,811
5,739.05 NP$ (Donate)

champ_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond repute
Send a message via MSN to champ_rock Send a message via Yahoo to champ_rock



the script rocks n its current stage only.

i seem to be giving suggestions and suggestions only.. here go a few more to make it a dream script kind of a thing.. they all will require more advanced editing..

1. take input also from a text file.. use cronjobs to schedule checking
2. mailing the available domain list so that the script mails me when some domain becomes available for reggin ..
3. ad proxy support which will automatically switch proxie after some 100-200 domains checks.. that way the ip will not get banned
__________________
Akshay Jain
......................
champ_rock is offline   Reply With Quote
Old 01-20-2007, 11:58 AM   #25 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,547
34.41 NP$ (Donate)

Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Hi vincenzo,
Quote:
Just one last thing. As the list of tld's is quite long, and to save alittle on server processing, why not have them as tickboxes?

Many people would only be interested in checking a few of those tld's anyway?
The server list is long however the script does not check each extension. It will use the appropriate array key (and in this array since it is a multidimensional array the array array key) so check only the whois server for the domain with that extension.

champ_rock,
Quote:
1. take input also from a text file.. use cronjobs to schedule checking
2. mailing the available domain list so that the script mails me when some domain becomes available for reggin ..
I like the first half of that idea, but the second would require greater input from the user and goes out of the bounds of this script

Quote:
3. ad proxy support which will automatically switch proxie after some 100-200 domains checks.. that way the ip will not get banned
I think i'll leave it as it is, if someone wants to do that they can but i don't have any time to spend on this anymore as i loose a whole day of work tomorrow. I will get some suggestions put in (i.e. text files and .tv support) but not extensive ones
Matthew. is offline   Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.namepros.com/code/280961-php-bulk-domain-availability-check.html
Posted By For Type Date
Domain Name Availability Search Script - Web Hosting Talk - The largest, most influential web hosting community on the Internet This thread Refback 05-03-2009 04:35 PM
Bulk Domain Availability Checker - Dynamic Drive Forums This thread Refback 05-01-2009 08:43 PM

Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools


All times are GMT -7. The time now is 05:26 AM.

Contact Us - NamePros.com - Privacy Statement - Top
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2