can anyone help me out with magpie?

Discussion in 'XML & RSS' started by greenworld, Jul 4, 2006.

  1. #1
    I really need help to make this work,

    in the installation file, it is not much, it seems to be simple, but why i can not make it work?

    with some test and error and some info from this forum and others, here is what I did:

    I made a folder off root called "rss_magp"
    I made another folder off root called "cache", and chmod it to 777,

    unzipped magpie 0.72 and upoladed all the folders and files into the "rss_magp" folder,

    I made a php test page using DW as "test_mag.php"
    and put the following codes in a table cell and upload the test page to root of my host
    where my index page of site is( yes php works fine there):

     
    <?php
     define('rss_magp', '/home/myusername/rss_magp/');
    require_once('/home/myusername/rss_magp/rss_fetch.inc');
    
    $url = 'http://www.articletrader.com/rss2.php?advanced=1&q=&type_of_feed=0&number_of_articles=5&sort_by=0&custom=Generate+Feed&c%5B%5D=23';
    ?>
    
    Code (markup):
    after resolving some error on not having a correct path, now I get no error,

    but the page shows nothing, no article no error, nothing.
    I did changed the feed couple of times, but same result.

    what I did wrong I have no idea,
    I did install Carp and it was easy and worked well, Now I want to try
    magpie,

    I even tried the code that mikelbeck suggested on another thread, still shows nothing,

    http://forums.digitalpoint.com/showthread.php?t=28062&highlight=magpie

    anyone can help me on this issue?

    appreciate your help.
     
    greenworld, Jul 4, 2006 IP
  2. greenworld

    greenworld Peon

    Messages:
    65
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ok, I did missed a line of code i guess, this time the code looks like this:


     
    
    <?php
     define('rss_magp', '/home/myusername/rss_magp/');
    require_once('/home/myusername/rss_magp/rss_fetch.inc');
    
    $rss = fetch_rss($url);
    
    $url = 'http://www.articletrader.com/rss2.php?advanced=1&q=&type_of_feed=0&number_of_articles=5&sort_by=0&custom=Generate+Feed&c%5B%5D=23';
    ?>
    
    Code (markup):
    and I get this error:

    Warning: MagpieRSS: fetch_rss called without a url in /home/myusername/rss_magp/rss_fetch.inc on line 238


    and on line 238 of the file :

    trigger_error( $errormsg, $lvl);


     
    
                if ( $errormsg ) {
                $errormsg = "MagpieRSS: $errormsg";
                $MAGPIE_ERROR = $errormsg;
                trigger_error( $errormsg, $lvl);                
                }
                }
    
    
    Code (markup):
    anyone have any clue?

    thanks
     
    greenworld, Jul 4, 2006 IP
  3. greenworld

    greenworld Peon

    Messages:
    65
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    greenworld, Jul 4, 2006 IP