Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Good news everyone! The Boards.ie Subscription service is live. See here: https://subscriptions.boards.ie/

web service application

  • 21-06-2006 06:24PM
    #1
    Closed Accounts Posts: 1,200 ✭✭✭


    what's the best way to create a Web Service application with php?

    I have a project that I am working on, and web service is one the things I would like to have it available.


Comments

  • Closed Accounts Posts: 1,200 ✭✭✭louie


    get php to export the items from a database and output them into an xml file. The your users can have php files on their sites which grabs the items from the xml file and displays them as variables. Simple stuff really.

    So the xml file should be already created or they will be generated based on request from client.

    It sounds good, but i need to handle a lot of requests based on the query string (ex. first we list all products with paging navigation 1 |2 |3 |...next, then view one products based on the query passed).

    I could make a basic template with header, content and footer and pass it on to the client as a zip file.

    Anymore ideeas?


  • Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭seamus


    Yeah, as louie said, it should be simple enough with XML. RSS feeds tend to work in the same way.

    The client requests www.yoursite.com/feed.php?var1=a&var2=b&page=3
    etc and the php page spits back the XML at them.

    For the less savvy of your clients, you write a page that accepts the variables, with one variable being the client id, and then you output the slightly customised page, based on that id.

    This may also be one of those rare occasions when a frameset or iframe will be of use to you.


  • Advertisement
  • Closed Accounts Posts: 1,200 ✭✭✭louie


    I am trying to stay away from frameset (grrrrr) and also from iFrame as well.


  • Registered Users, Registered Users 2 Posts: 3,514 ✭✭✭Rollo Tamasi


    seamus wrote:
    Yeah, as louie said......

    you spelt my name wrong :)


  • Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭seamus


    lol :)


Advertisement