JQuery JSON Calls To PHP WebService Always Runs “Error” Callback

后端 未结 4 1085
清酒与你
清酒与你 2020-12-11 11:38

I\'m having this headache now, since I\'ve been having this problem the whole day and, still, can\'t fix it. I\'ve looked on Google and StackOverflow for hours, tried many m

4条回答
  •  感情败类
    2020-12-11 11:51

    Try to change the JQuery URL from :

    http://www.example.com/ws/webservice.php/methodName
    

    To:

    http://www.example.com/ws/webservice.php?method=methodName
    

    And then try to read it from the $_GET['method'] from PHP, I think this should be your problem

提交回复
热议问题