• Welcome to DNForum.com - Domain Investor Forum, Free Domain Marketplace and a community for 45+ domain pros
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Wanted: Service Need program to output length of domain name DNF$500

Status
Not open for further replies.

Deleted member 2020

DNF Addict
The Originals
Legacy Exclusive Member
Joined
Nov 29, 2002
Messages
1,550
Reaction score
0
Hello,

I need a program (or website) where I can input a list of domains with TLD, one per line and it will out put the same list with the number of characters in the domain WITHOUT the extension.

The program should ideally be able to accept at least 10,000 domains, although a lower number would also be acceptable if not too low (but not under 1000)

Input format:

1234.com
1234.info
1234.net
thryidodlkg.com
grtilo.org
:
:

Output format:

1234.com 4
1234.info 4
1234.net 4
thryidodlkg.com 11
grtilo.org 6
:
:

Offering DNF$500 to the first person to provide a working solution.

Thanks.
 
Save below code as " dnlenght.php " and place it where you can run PHP scripts.
PHP:
<html>
	<head>
	<title>DN Lenght</title>
	</head>
	<body>
		<div style="text-align:center; padding: 20px;">
		<p>Enter domain list</p>
		<form method="POST" action="dnlenght.php">
		<textarea name="dnlist" rows="10" cols="60"><?php if(isset($_POST['dnlist'])) echo $_POST['dnlist']; ?></textarea><br />
		<input type="submit" value="Submit">
		</form>
		<br>
			<?php
				if(isset($_POST['dnlist'])) {
					echo "<b>Result</b><br>";
					echo "<textarea rows=\"10\" cols=\"60\">";
					$dnList = explode("\n", $_POST['dnlist']);
					while (list($key, $val) = each($dnList)) {
						if(!empty($val)) {
							$domain = trim($val);
							$domainLenght = explode('.',$domain);
							$domainLenght = strlen($domainLenght['0']);
							echo $domain  .  " ". $domainLenght . "\n";
						}
							
					}
					echo "</textarea>";
				}
			?>
		</div>
	</body>
</html>
 
Status
Not open for further replies.
Back
Top Bottom