NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Creating multiple links with php !

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-02-2007, 06:03 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Jun 2007
Posts: 141
priyakochin is an unknown quantity at this point
 



Creating multiple links with php !


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 !
priyakochin is offline  
Old 06-02-2007, 11:39 PM   #2 (permalink)
Senior Member
 
champ_rock's Avatar
Join Date: Oct 2006
Location: http://akshayjain.org
Posts: 2,830
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
 



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>
champ_rock is offline  
Old 06-03-2007, 04:51 AM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Jun 2007
Posts: 141
priyakochin is an unknown quantity at this point
 



Great !
I just modify something to make it mine !
priyakochin is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:39 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger