XML and PHP? Is it possible?

Discussion in 'XML & RSS' started by Pixel T., May 29, 2009.

  1. #1
    Im using a gallery script called SimpleViewer and it has a .xlm file where you insert the image urls and stuff. But my image urls are in a mySQL database. Is there any possible way to use PHP in that .xml file?

    Thanks,
     
    Pixel T., May 29, 2009 IP
  2. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #2
    Are you asking if you can use PHP to fetch the URLs in the database for use in SimpleViewer? I do not want to assume anything, so here are a few options. It appears that SimpleViewer has several methods to manage the gallery. Are you using the manual method? If so, use a CRON job to write the XML file out. The scheduled job will fetch the URLs out of the database and write it to the XML file. Simple and requires NO modifications to the existing script. If this approach does not meet your requirements, let me know.
     
    Social.Network, May 29, 2009 IP