How can i create webservices in PHP

Discussion in 'PHP' started by snopycobra, Sep 16, 2013.

  1. #1
    I need to know how can i create webservices in php..
    also tell me how to pass data in json and xml in forms & call the json and xml data through PHP.
     
    Solved! View solution.
    snopycobra, Sep 16, 2013 IP
  2. #2
    this is very good to understand how must work: http://www.w3schools.com/webservices/default.asp

    I love w3schools
     
    xxxize, Sep 16, 2013 IP
  3. samyak

    samyak Active Member

    Messages:
    280
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    90
    #3
    You should learn about PHP SOAP library.
     
    samyak, Sep 17, 2013 IP
  4. ajf7688

    ajf7688 Active Member

    Messages:
    719
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    85
    #4
    You can also use Curl with HTTP POST or GET methods for web applications to communicate with each other, You need to design auth between applications well and keep it secure, Overall using REST is easier and fun to implement
     
    ajf7688, Sep 17, 2013 IP
  5. snopycobra

    snopycobra Active Member

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #5
    That's Right I Also Read About PHP APC Does This Do Same Work As Curl?
    curl is very difficult so i think about php apc...
     
    snopycobra, Sep 19, 2013 IP
  6. xxxize

    xxxize Member

    Messages:
    33
    Likes Received:
    2
    Best Answers:
    2
    Trophy Points:
    38
    #6
    No.. APC is for caching your data-pages (Alternative PHP Cache).
    If you want to minimize the load time of your pages or data you enable APC.
    It's very good.

    I think you must start with web service tutorial examples and continue..
    It's a little complicate for rookie but if you understand the logic all will be clear.
     
    xxxize, Sep 19, 2013 IP