- Posts: 66
- Thank you received: 3
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
require_once 'jsonRPCClient.php';
Please Log in to join the conversation.
Where did you see it was on remote server ?I know how to install curl. What I don’t know is how can I do the “require_once” for the api client file when it’s on a remote server. What I thought I would need is curl to call the api if Limesurvey is on a different server. I don’t know how to do that.
// without composer this line can be used // require_once 'path/to/your/rpcclient/jsonRPCClient.php'; // with composer support just add the autoloader include_once 'vendor/autoload.php';
Please Log in to join the conversation.
Please Log in to join the conversation.
Yes, that's exactly what I suggested.I think I know what I’m needing to do and it has nothing to do with CURL. At least I think this is right. I just need to put “application/libraries/jsonRPCClient.php”
on the server that I’m calling the API from. and then require it locally.
Please Log in to join the conversation.
Yes, This is what I ended up doing. ThanksHave you tried copying the jsonRPCClient.php and jsonRPCServer.php files to the same directory as your PHP file on your remote server?
This works for me with a simple direct call for the file.
Code:require_once 'jsonRPCClient.php';
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.