Computing.Net > Forums > Web Development > how to write this php script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how to write this php script

Reply to Message Icon

Name: florocent
Date: May 6, 2006 at 12:18:10 Pacific
OS: unix
CPU/Ram: 3.4/1G
Product: Dell
Comment:

Can anybody guide me ( do not write the script for me just guide me instead if you ve not time), A php script that will take a list of 1000 to 3000 keywords and let the user break them into list of subcategories of 25-30 keywords per list including broad match and exact match AND phrase match

keywords:

keyword
good keyword
awesome keyword
"keyword"
"good keyword"
"awesome keyword"
[keyword]
[good keyword]
[awesome keyword]

how to make the ability to sort large lists of keywords by the first 1, 2. or 3 words in a keyphrase into relevent lists.

for example:

hyperhidrosis
hyperhidrosis for dummies
hyperhydrosis for adults
hyperhidrosis for adults today


with "1" selcted , they all fit, with "2" selected the later 3 fit,
with "4" selected they should ALL be put into a seperate group.


Key phrases that DO NOT fit into ANY category should be placed into a seperate file.


The Non "Keyword" or [keyword] keywords should be placed inside different .txt files, based upon the "1", "2", "3" results with the folder name based on the FIRST keyword phrase.


The output directory for THIS file should be user determined.


( If you can understand what i am trying to write but can;t :(.
I just ned some guideance

admin@paklight.net



Sponsored Link
Ads by Google

Response Number 1
Name: James Greenwood (by jamesgreenwood)
Date: May 20, 2006 at 15:39:23 Pacific
Reply:

The PHP sort() function is what you need to experiment with. Firstly you'd need to have an array of keywords and a routine to grab the specified word (1st, 3rd etc) and store those words alongside the phrases in the array.

Then perform a sort() on the words you've just added and display the corresponding phrase to each sorted word.


0
Reply to Message Icon

Related Posts

See More


what is this javascript f... Need Free Website Templat...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: how to write this php script

how to write client side script????? www.computing.net/answers/webdevel/how-to-write-client-side-script/4186.html

How to write code for chat??????? www.computing.net/answers/webdevel/how-to-write-code-for-chat/4058.html

how to have this effect? www.computing.net/answers/webdevel/how-to-have-this-effect/3238.html