Need a Script that takes keywords and outputs .htm pages

Discussion in 'PHP' started by trooperbill, Jan 15, 2010.

  1. #1
    Anyone guide me through the process of creating a php script that takes a load of keyword information and strips/combines terms and outputs .htm files with all relevant links.

    i.e.

    keyword data is:

    red leather widgets
    widget shop

    outputs the files:

    red.htm
    (with links to red-widgets.htm, red-leather-widgets.htm)
    red-leather.htm
    (with links to red-widgets.htm, red-leather-widgets.htm)
    red-leather-widgets.htm
    (with links to red-widgets.htm, red-leather-widgets.htm)
    widgets.htm
    (with links to all pages)

    etc

    hope you get what i mean... oh and im a PHP n00b so be gentle :)
     
    trooperbill, Jan 15, 2010 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Following process should be followed:
    1. Write a function which gives you all possible combinations of keywords starting with one keyword to all keywords.
    2. Once you have got list of keywords in array, pick one and make links for rest all, write .htm file for the picked keyword with links of other in list.
    3. Keep repeating 2nd step for all possible combinations and you are done :)

    You can begin with coding and if need help, let us know, we will help you with better code :)
     
    mastermunj, Jan 17, 2010 IP