Affiliate Marketing
Forum Search


Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 11-03-06
Registered User
 
Join Date: Aug 2005
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Pokerman is an unknown quantity at this point
  Long lists of items - Turned into Search strings - Is this possible?

Hi Guys,

I am trying to turn text into "auto links"!

I am adding lists of artists to my site. I want to add the list of Artists, and turn them into links so when the user clicks them, they are taken to a search on Amazon for the artists name.

I don't want to Manually code every link. Is there a script that will take each item from the list, and automatically turn them into search string links to an external site?

Is this possible with PHP, or would I also need to setup a MySQL database? Is this even possible at all? Or do I need to manually type all the anchor tags?

I appreciate any help in advance, and I will be amazed if anyone can answer this question. I've spent hours looking for answers on Google!

Many thanks,
P-Man
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-06
Swiss's Avatar
memoryfinder.co.uk
 
Join Date: Jun 2005
Location: Wiltshire, UK
Posts: 343
Thanks: 0
Thanked 0 Times in 0 Posts
Swiss is an unknown quantity at this point
This is very possible with PHP, you can dump the contents of a text file into a variable with the function file_get_contents(). I can't remember exactly how the function works, it might build an array with a key for each new line, or it might just treat it as a whole string, which you could then convert into an array with explode() using the newline character as the seperator, then loop through the array with a foreach loop to create your list of links.

Oh, if your new to PHP, you might want to read through a few pages of the manual to pick up the general syntax and theories, as well as looking up the functions for more info and examples on how they can be used. php.net
__________________
Kris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-03-06
Registered User
 
Join Date: Aug 2005
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Pokerman is an unknown quantity at this point
Kris,

Thanks for the info. I will look through the manual now and check it out.

Thanks again,

P-Man
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-03-06
Registered User
 
Join Date: Aug 2005
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Pokerman is an unknown quantity at this point
Found this info also:

If the link is amazingly simple, like googles google.com/q=name, then you could perhaps do it another way, with some kind of unique marker like #Beatles, then use preg_replace to rewrite that to <a href=........ etc>Beatles</a>

I am not familiar with the preg_replace function. Can anyone explain how I could use this to automate the link creation from a list of names?

Thanks,
P-Man
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #5 (permalink)  
Old 12-03-06
Swiss's Avatar
memoryfinder.co.uk
 
Join Date: Jun 2005
Location: Wiltshire, UK
Posts: 343
Thanks: 0
Thanked 0 Times in 0 Posts
Swiss is an unknown quantity at this point
preg_replace() needs to be fed with a regular expression, I know of people that have been programming for years and they still can't get their head fully around them - If your new to programming as a whole, I would stay away from that, if you feel like you want to give it a try, regular-expressions.info is quite informative.

I get the feeling you're looking for something you can just copy and paste into your HTML to get this working - To save you the time and bother, you will most likely not find anything. It will be a case of learning the basics of PHP and coding it yourself. If you get into any problems try out the forums at phpfreaks.com or post back here as there are a few PHP people on here too.
__________________
Kris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Keyword Research - Care to contribute to the research? webdesignhq Search Engine Strategies 4 26-03-07 09:52 AM
Seach Engine Optimisation FAQ [Jan2006] thetafferboy Organic Google Search Optimisation 2 09-01-06 05:11 PM
Google Gains in Popularity, But Will It Last? getvisible Organic Google Search Optimisation 0 16-06-04 04:42 PM
MSN announced a redesign for its MSN Search service getvisible The Affiliate Marketing Lounge 0 25-03-04 10:41 PM
ARELIS 3 Link Popularity Software Qui Gon Jinn Website Promotion 4 05-03-03 07:34 AM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7