PHP Classes

Problem

Recommend this page to a friend!

      PHP JSON RPC Objective Server  >  All threads  >  Problem  >  (Un) Subscribe thread alerts  
Subject:Problem
Summary:Problem
Messages:4
Author:Zaghdoudi Chokri
Date:2015-11-15 05:43:01
 

  1. Problem   Reply   Report abuse  
Picture of Zaghdoudi Chokri Zaghdoudi Chokri - 2015-11-15 05:43:01
Not works

  2. Re: Problem   Reply   Report abuse  
Picture of Martin Barker Martin Barker - 2015-11-15 21:28:20 - In reply to message 1 from Zaghdoudi Chokri
How does it not work just not working makes no sense I'm using it in a production environment

  3. Re: Problem   Reply   Report abuse  
Picture of Martin Barker Martin Barker - 2015-11-16 13:20:26 - In reply to message 1 from Zaghdoudi Chokri
Just to Clarify this user is just Wrong.

I have downloaded this copy put it onto a clean IIS 10 with PHP 5.6 (only needs PHP 5.3 or newer) extracted this to a folder called test

So on my machine it was at
localhost/test/

Altered test.php so that the 5th line read
curl_setopt($ch, CURLOPT_URL, "http://localhost/test/" );

The Test worked, i then browsed to the URL http://localhost/test/
and got an error expected result
{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":""}

I then used https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo

Sent a Raw POST Payload of
{"jsonrpc":"2.0", "method":"example.ping", "params":["Hello World"], "id":0}

and got exactly what i should have got back.

{"jsonrpc":"2.0","result":"Hello World","id":0}

So ether this user has not Read the information in the package via Readme or even bothered to look at the scripts inside the API or the Text.php that quite clearly has a section that needs to be changed.

  4. Re: Problem   Reply   Report abuse  
Picture of Zaghdoudi Chokri Zaghdoudi Chokri - 2015-11-18 06:05:29 - In reply to message 3 from Martin Barker
Ok thank's