Creating multiple links with Php !

SpaceshipSpaceship
Watch

priyakochin

Established Member
Impact
3
I am having a list of 15,000 web sites.Now I want to add live links to all sites.

I will make it little more clear ;

I am having some sites :

xxx.com

and need to convert them to :

www.xxx.com (live link ; when clicked open in new page)



Please help me !
I think it can be done with php.But not getting an idea for it !

Plz help !
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
here u go.. live demo at http://www.champrock.uk.to/test/index.php

Code:
<?php 

if(isset($_POST['submit'])) {		
	$urls = explode("\n", $_POST['domains']);
	foreach ($urls as $url) { 
   	 	$url = trim($url); 
		$link= "http://".$url;
		echo '<a href='.$link.'>'.$url.'</a><br>';
		ob_flush();
		flush();

	
	
	}

} 
?>
<div style="text-align: center">
	<form action="index.php" method="post">
		<textarea name="domains" cols="50" rows="15"></textarea>		
		<br /><input type="submit" name="submit" value="Create URL" style="font-size: 15pt;" />
	</form>
</div>
 
0
•••
Great !
I just modify something to make it mine !
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back