Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

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

Status
Not open for further replies.

Deleted member 2020

DNF Addict
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.
 

b.a

Level 4
Legacy Platinum Member
Joined
Mar 22, 2006
Messages
143
Reaction score
0
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.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 1) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

Upcoming events

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom