We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Use of curl in File Manager script

Accepted answer
19
Views
2
Comments
edited Oct 19, 2020 5:10PM in Agent Desktop 2 comments

Summary

Can i use curl in File Manager php script?

Content

I have the below script in File Manager that stops just after load_curl().

What am I doing wrong with using curl in this File Manager script?

 

Thank you!

Version

20B

Code Snippet

use \RightNow\Connect\v1_3 as RNCPHP;
if (!defined('DOCROOT')) {
   $docroot = get_cfg_var('doc_root');
   define('DOCROOT', $docroot);
}
 
require_once(DOCROOT . '/include/ConnectPHP/Connect_init.phph' );
InitConnectAPI(Given,Given); //Valid Username and Password
load_curl();
$ch = curl_init();
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!