Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1330 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

How this website works?

Thread title: How this website works?
Reply    
    Thread tools Search this thread Display Modes  
06-02-2012, 04:49 PM
#1
TheMatthewBrennan is offline TheMatthewBrennan
TheMatthewBrennan's Avatar
Status: I'm new around here
Join date: Feb 2012
Location: Ballymena
Expertise: Graphic Design
Software:
 
Posts: 14
iTrader: 0 / 0%
 

TheMatthewBrennan is on a distinguished road

  Old  How this website works?

How does www.macbooty.co.uk work? Its using ebay rss feeds but im not sure how thats possible.

06-03-2012, 11:06 AM
#2
Ant is offline Ant
Status: Member
Join date: Apr 2005
Location: England
Expertise:
Software:
 
Posts: 209
iTrader: 5 / 100%
 

Ant is on a distinguished road

  Old

Well RSS feeds are basically XML, and you can use various techniques to parse XML and display it on your own website.

If you're using PHP I suggest looking at the CURL extension and SimpleXML

06-03-2012, 11:17 AM
#3
Ant is offline Ant
Status: Member
Join date: Apr 2005
Location: England
Expertise:
Software:
 
Posts: 209
iTrader: 5 / 100%
 

Ant is on a distinguished road

  Old

Something like this should bring a list of latest macbooks, but whether that is how the site works I don't know - they might have some sort of reseller account which maybe offers a better api.

PHP Code:
<?php

    $url 
'http://www.ebay.co.uk/sch/rss/?_nkw=Macbook&rt=nc&_catref=1&_rss=1&_sacat=175672';

    
$session curl_init($url);
    
curl_setopt($sessionCURLOPT_RETURNTRANSFERtrue);
    
$data curl_exec($session);
    
curl_close($session);

    
$xml_data = new SimpleXMLElement($data);

    foreach (
$xml_data->channel->item as $item)
    {
        echo 
$item->title '<br>'
            
$item->link '<br>'
            
$item->description '<br>'
            
$item->pubDate '<br><br>';
    }

Reply    


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed