View Full Version : Is there something to do this task?
Vaonline
04-22-2012, 10:43 PM
Hello.
I have to put a diferent link to 300 different words one by one, for me alone its just too much and it takes too much time and delays my work.
Is there something to do this?
I mean
Text A - link A (LA) then i put them together and gives me: TEXTAWITHLINKA (TALA)
and
Text B - link B (LB)- TEXTBWITHLINKB (TBLB)
With what can i do this?
james438
04-23-2012, 01:40 AM
php will do this.
I am assuming this is for a website. I ask because you are posting in the computer hardware and software area.
<?php
$text="text";
$link="http://www.website.com";
$display="<a href=\"$link\">$text</a>";
echo "$display";
?>
We could give you a better answer, but we need a little more information to work with.
Then again you could probably create a simple form where you could copy and paste the words and links and hit a submit button and have the hyperlinked words auto generated. That shouldn't be too hard to do.
Just pondering.
djr33
04-23-2012, 02:01 AM
More generally, any program that can do REGEX (regular expressions) search/replace can do this pretty easily for you. PHP is certainly an option, but it isn't required. Some text editors have this functionality. To be clear, it won't necessarily be easy, but it might be faster to set this up instead of doing it all by hand, and you'd learn something useful in the process.
djr33
08-09-2012, 11:35 AM
What is your question, specifically? Is this a new question? If so, start a new discussion.
If this is a reply to the current topic, then please explain exactly where you are stuck and what you are trying to do.
If you just want to start, then look up any tutorial on "php regex" and go from there.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.