Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 878267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:44:42+00:00 2026-05-15T11:44:42+00:00

I am using PHP and I am looking to create links within my text

  • 0

I am using PHP and I am looking to create links within my text to other sections of the site so for example:

I fell into the media industry aged 30, when David Mansfield, now on the board of
Ingenious Media, gave me my first break at Thames TV. From there, I worked at the
(now-defunct) Sunday Correspondent and IPC, before joining TDI, which became Viacom
and then CBS Outdoor. After 12 years in outdoor, I spent a year out doing overseas
outdoor consultancy work in Russia, Dubai and Spain, as well as launching the media 
CRM business, Media By Permission. I have been lucky enough to work across a range of 
media, but outdoor would definitely be my specialist subject on 'Mastermind'.

I would want to link Ingenious Media To a page all about Ingenious Media but I would also like to link all mentions of Media to a media related page.

Obviously I don’t want to link the word Media inside Ingenious Media

How could I go about doing this without double linking some words?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:44:42+00:00Added an answer on May 15, 2026 at 11:44 am

    Step 1. Create a new array containing the names of the entities you want to ‘tag’ and order it longest entity name to shortest entity name.

    Step 2. Loop through this array and replace each occurance of the entity in the text with a unique token (for example ## . rand(100, 999) * rand(100, 999)). We do this to avoid creating links around entities that form part of another entity.

    Step 3. Create your link and store it in another array where the key for each entry in the array is the unique token and the value is the link you just made.

    Step 4. Loop through the links array and replace the tokens in the text with the links that correspond to the token in the array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking into the feasibility of using PHP - instead of mod_rewrite - to
I'm looking into hash and salting passwords using bcrypt in PHP. Can someone explain
I'm looking for a good example of using Regular Expressions in PHP to reverse
I am looking to create an auto incrementing unique string using PHP, containing [a-Z
How to create digital clock using PHP (london time zone) sample clock Am looking
I'm looking to create on-the-fly tree diagrams using PHP, HTML, and CSS. Mock-up below:
I am looking to create a product ordering and invoicing system using PHP/MySQL. I
Basically I'm looking to create a page using PHP that will take SQL input,
I am looking to create a commercial website using php and I wanted to
I'm looking to do Authorize.net payment integration with a website using PHP. My questions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.