Hello,
We require a small script that should be in PHP that does the following:
A page with 3 radio buttons, one “raw”, one “site map” and one “xml”. There will be a text area above it that you place input in.
If the input select is raw, it will resemble this (URLs separated by newlines):
http://site.com/page
http://site.com/page2
If the input is site map, the input will be like the CONTENTS (not the URL, but it’s contents!) of this link:
http://cloudcomputingoffers.com/page-sitemap.xml
if the input is an RSS feed, the input will be like the CONTENTS (not the URL, but it’s contents!) of this link:
http://cloudcomputingoffers.com/feed/
—–
There will be another text area below it with a list to input a keywords separated by enters, like this:
key word 1
keyword 2
—
Then a submit button, for obvious reasons.
—
When submitting, the initial workflow depends on the type of data
Raw:
Parse and generate an array of all those items
Sitemap/RSS feed:
Generate an array out of the URLs on the page by parsing the XML (please note the XML structure will always remain the same for both RSS feeds and site maps so not to worry too much about that)
Once there is an array with the URLs, the keywords must be parsed the same way, generate an array of the keywords split on newlines
—–
Finally, what is required is that it generates output that is the following:
<a href=”{http://site.com|http://site2.com/page1|http://site5.com/page4}”>{keyword 1|key word 2|keyword 600}</a>
Basically, implode the URL array using pipes (|) and prefix/suffix with curly braces, same thing for keywords, include them as a link, et voila. The output should resemble the top, nothing more than that.
I welcome your bids and this should be a quick job.