Link Trading
  Home arrow Link Trading arrow Page 2 - Using RSS Feeds and Mod_rewrite to add...
SEO Chat Forums  
Choosing Keywords  
Google Optimization  
Link Trading  
MSN Optimization  
Search Engine News  
Search Engine Spiders  
Search Optimization  
Web Directories  
Website Marketing  
Website Promotion  
Website Submission  
Yahoo Optimization  
SEO Tools
Adsense Calculator
AdSense Preview
Advanced Meta-Tags
Alexa Rank Tool
Check Server Headers
Class C Checker
Code to Text Ratio
CPM Calculator
Domain Age Check
Domain Typos
Future PageRank
Google Dance
Google Keywords
Google Search
Google Suggest
Google vs Yahoo
Indexed Pages
Keyword Cloud
Keyword Density
Keyword Difficulty
Keyword Optimizer
Keyword Position
Keyword Typos
Link Popularity
Link Price Calculator
Meta Analyzer
Meta Tag Generator
Multiple Link Popularity
Page Comparison
Page Size
PageRank Lookup
PageRank Search
Robots.txt Generator
ROI Calculator 
S.E. Comparison 
S.E. Keyword Position 
Site Link Analyzer 
Spider Simulator 
URL Redirect Check 
URL Rewriting 
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
SEO Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
LINK TRADING

Using RSS Feeds and Mod_rewrite to add Classified Listings on your Website
By: Roger Stringer
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 14
    2005-08-22

    Table of Contents:
  • Using RSS Feeds and Mod_rewrite to add Classified Listings on your Website
  • Arrays of cities and categories
  • Four functions
  • Putting it all together

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using RSS Feeds and Mod_rewrite to add Classified Listings on your Website - Arrays of cities and categories


    (Page 2 of 4 )

    Next, we create an array containing our cities:

    <?
      $cities = array(
        "US" => array("atlanta","austin","baltimore", "boston",
          "chicago","cleveland","dallas","denver","detroit",
          "honolulu","houston", "las vegas","los angeles",
          "miami","minneapolis","montreal","new orleans",
          "new york","philadelphia", "phoenix","pittsburgh",
          "portland","providence","raleigh","sacramento",
          "san diego","seattle","st louis" ),
        "Canada" => array("calgary","edmonton","halifax",
          "montreal","ottawa","quebec","saskatoon","toronto",
          "vancouver","victoria","winnipeg"),
        "United Kingdom & Ireland" => array("london",
          "manchester","edinburgh","dublin","belfast",
          "birmingham","cardiff","glasgow"),
        "Americas"=>array("americas","buenos aires","caracas",
          "costa rica","lima","mexico city","rio de janeiro",
          "santiago","sao paulo","tijuana"),
        "Europe"=>array("amsterdam","athens","barcelona",
          "berlin","brussels","copenhagen","florence",
          "frankfurt","geneva","madrid","milan","moscow",
          "munich","paris","prague","rome","stockholm",
          "vienna","zurich"), 
        "Australia & New Zealand" => array("adelaide",
          "auckland","brisbane","melbourne","perth","sydney"),
        "Asia" => array("bangalore","bangkok","beijing",
          "delhi","hong kong","istanbul","jerusalem","manila",
          "mumbai","osaka","seoul","shanghai","singapore",
          "tel aviv","tokyo")
      );
    ?>

    This array is set up so that we could easily add more to it. We use the format of country, followed by the city for display purposes, which you will see later in this article.

    Next, we create an array containing our categories:

    <?
      $categories = array(
        "Community" => array(
          "ccc"=>"All Community","act"=>"activities","laf"=>
          "lost & found","ats"=>"artists","muc"=>"musicians",
          "kid"=>"childcare","vnn"=>"news & views",
    "com"=>
          "general","pol"=>"politics","grp"=>"groups",
          "rid"=>"rideshare","pet"=>"pets","vol"=>
          "volunteers" ), "Personals"=>array( "stp"=>
          "strictly platonic","w4w"=>"women seek women",
          "w4m"=>"women seeking men","m4w"=>
          "men seeking women", "msr"=>"misc romance",
          "mis"=>"missed connections"
        ),
        "Jobs" => array(
          "jjj"=>"All Jobs","acc"=>"Accounting / Finance",
          "ofc"=>"Admin / Office","med"=>
          "Art / Media / Design", "sci"=>"Biotech & Science",
          "bus"=>"Business / Management","csr"=>
          "Customer Service","edu"=>"Education / Teaching",
          "egr"=>"Engineering / Architecture","hum"=>
          "Human Resources","eng"=>"Internet Engineering",
          "lgg"=>"Legal / Government", "mar"=>
          "Marketing / PR / Advertising","hea"=>
          "Medical / Healthcare","npo"=>"Non-profit sector",
          "ret"=>"Retail / Food / Hosp", "sls"=>
          "Sales / Biz Dev","trd"=>"Skilled Trades / Craft",
          "sof"=>"Software/QA/DBA/etc","sad"=>
          "Systems / Networks","tch"=>"Technical Support",
          "tfr"=>"TV / Film / Video","art"=>
          "Web / HTML / Info Design","wri"=>
          "Writing / Editing", "etc"=>"[ETC]"
        ),
        "Gigs"=> array( "gggg"=>"All Gigs","cpg"=>"Computer",
          "evg"=>"Event","crg"=>"Creative","lbg"=>"Labor",
          "cwg"=>"Crew","wrg"=>"Writing","dmg"=>"Domestic",
          "tlg"=>"Talent",
        ),
        "Misc"=>array(
          "res"=>"Resumes"
        ),
        "Housing"=>array( "hhh"=>"All Housing","apa"=>
          "apts / housing","roo"=>"rooms / shared",
          "sub"=>"sublets / temporary","hsw"=>"housing wanted",
          "swp"=>"housing swap","vac"=>"vacation rentals",
          "prk"=>"parking / storage","off"=>
          "office / commercial", "rfs"=>"real estate for sale"
        ),
        "For Sale"=>array( "sss"=>"For Sale","bar"=>"Barter",
          "bab"=>"Baby & Kids","bik"=>"Bikes","car"=>
          "Cars & Trucks","bks"=>"Books", "clo"=>
          "clothes & acc.","zip"=>"Free","clt"=>"collectibles",
          "fur"=>"furniture","sys"=>"computer","for"=>
          "general","ele"=>"electronics","spo"=>"sporting",
          "gms"=>"garage sales","tix"=>"tickets","hsh"=>
          "household","wan"=>"wanted", "mcy"=>"motorcycles",
          "msg"=>"music instr"
        ),
        "Services"=>array( "bbb"=>"All Services","cps"=>
          "computer","aos"=>"automotive","crs"=>"creative",
          "hss"=>"household","lbs"=>"labor/move","evs"=>
          "event","sks"=>"skill'd trade","fns"=>"financial",
          "rts"=>"real estate","lgs"=>"legal","biz"=>
          "sm biz ads", "lss"=>"lessons","ths"=>"therapeutic"
        )
      );
    ?>

    As you can see, this array is also a multi array. It lets us group categories and add more if we want to.

    More Link Trading Articles
    More By Roger Stringer


       · Hopefully this isn't going to give away the farm, but I have a few questions...
       · Hello! there. I read the article and i want to try it but i could not set up...
       · Did you set up the .htaccess file like I said at the start of the article?
       · Yes.. I'm using the following lines on my...
       · Does your server have mod_rewrite turned on / installed?One thing to try, find...
       · I just figured out that i was doing a mistake on "rssads.php"...
       · But this clearly violates CraigsList TOS regarding aggregation/reproduction. This...
       · Using the RSS feeds from craigslist does not violate their TOS. If it does, then it...
     

    LINK TRADING ARTICLES

    - Link Building Methods
    - Link Trading: Good Idea, or Waste of Time?
    - Establishing Link Popularity and Increasing ...
    - Microsites for Affiliates and SEO
    - A Brave New World: the Current and Future St...
    - The Importance of Building Links
    - Link Farming: No Good Harvest
    - Networking to Build Back Links to Your Web S...
    - More Ways to Build Back Links to Your Web Si...
    - Where Do Your Back Links Lead?
    - How to Build Back Links to Your Web Site
    - A Review of Digg: Model for Social Bookmarki...
    - Use Linking to Increase Traffic
    - Using RSS Feeds and Mod_rewrite to add Class...
    - How to Steal to the Top of Google, part 2





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT