Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    137 times
    Basically I'm attempting to create a PHP script that will take some basic info from a mySQL database and spit it out into a RSS (XML) file. I know I'll need to use the PEAR XML stuff, but it's confusing me to no ends. To clarify, I would like to design a RSS CREATION script, not a RSS reader. There are more than enough of those around.

    Does anyone have any experience using the PEAR XML packages, or has seen a script like this anywhere? I've looked around, and most I've found are either too old, or just too confusing with little to no documentation.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  2.  

  3. #2
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    Don't use any packages, do it manually. I just created an RSS feed from my old database of links.

    http://www.ny-tech.net/res/rss.php

    Source: http://www.ny-tech.net/res/rss.phps

    See if that helps.

    I picked up the structural info from this webpage: http://searchenginewatch.com/serepor...le.php/2175271
    There and Back Again :Ogre:

  4. #3
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    137 times
    That's close to what I was looking for. Even though a RSS reader can read the PHP as an XML file, I'd personally rather have it spit out a true XML file, but that's close enough for now, thanks. On a side note, is the phps just a simple show code script that points to the original file, or do you have something in the root where you slap an s after it, and it auto spits out code?
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  5. #4
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    137 times
    The new RSS reader I was working on that uses PEAR and XML doesn't want to read it, but this one does: http://soapclient.com/rss/rss.sri?ur...estname=RSSGet
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  6. #5
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    .php vs .xml issue. That is simple if you are using Apache. You can either use "FoceType" or "AddType" to have apache treat .xml file as .php (so that when you call rss.xml), it will parse it through php.

    As for phps, this will do it:
    Code:
    AddType application/x-httpd-php-source .phps
    There and Back Again :Ogre:

  7. #6
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    137 times
    Yes, but it's others websites that would have to do that, not mine.

    Thanks for the source showing code.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:30 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com