Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hyperlinks generator Help

    Hi

    I need some help to get this done using php:


    1 - I have few hyperlinks say 500 in format like:

    <a href="http://domaina.com/1.html" target="_blank">http://domaina.com/1.html</a>
    <a href="http://domainb.com/1.html" target="_blank">http://domainb.com/1.html</a>
    <a href="http://domainc.com/21.html" target="_blank">http://domainc.com/21.html</a>
    <a href="http://domaind.com/new.php" target="_blank">http://domaind.com/new.php</a>

    etc etc

    Now I want to convert them into format like:

    <a href="http://domaina.com/1.html" target="_blank">keyword 1</a>
    <a href="http://domainb.com/1.html" target="_blank">keyword 2</a>
    <a href="http://domainc.com/21.html" target="_blank">keyword 3</a>
    <a href="http://domaind.com/new.php" target="_blank">keyword 4</a>


    Here keyword 1,2,3,4 can be taken randomly from a file which has huge list of keywords or may be we can paste the hyperlinks and keywords in php form itself and then it just links into the manner as given above.

    Can anyone provide the code for doing this?

    Thanks

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Are you generating the HTML for all of these links using PHP?

  • #3
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes you are correct

    Monicka

  • #4
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks.. I am revising my problem and making it more clear and simple now as:

    I would need a PHP form page with two form fields:

    Form Field A-

    In this box we can paste bulk URLS like

    http://domaina.com/1.html
    http://domainb.com/2.html
    http://domaind.com/my.html
    http://domaina.com/new.html
    etc


    Form Field B-

    In this box we can paste list of keywords like

    keyword 1
    keyword 2
    keyword 3
    keyword 4
    keyword 5
    etc

    Lastly there is "SUBMIT" button and when we click on it then it provides us code on the page itself in the following manner:

    <a href="http://domaina.com/1.html">keyword 1</a>
    <a href="http://domainb.com/2.html">keyword 2</a>
    <a href="http://domaind.com/my.html">keyword 3</a>
    <a href="http://domaina.com/new.html">keyword 4</a>
    etc

    There is no database or external files requird..


    I hope its easy to understand now..


    If anyone can create this script then I would be very greatful..

    Thanks
    Monicka

  • #5
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    This isn't a free coding service. Show what you've accomplished and where you're stuck. If you prefer to have someone do your work for you, there's a Web Projects subforum where you post an offer.
    Are you a Help Vampire?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •