Dragonsys
Member
I'm trying to include an external file into a help page, but it is just coming out blank.
I have my callback file in /src/addons/DSO/Privacy.php
My page has this for the content:
I don't get any errors, but the page content is blank. I have verified the remote file exists and is readable. Curl is installed and working on both servers, I'm not sure what I might be missing.
Page URL - https://www.dragons-server.com/help/privacy/

I have my callback file in /src/addons/DSO/Privacy.php
PHP:
<?php
namespace DSO;
class Privacy {
public static function getHtml(){
$url = 'https://www.domain.com/myfile.txt';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
$data = curl_exec($curl);
curl_close($curl);
return $data;
}
}
My page has this for the content:
HTML:
<xf:callback class="DSO\\Privacy" method="getHtml"></xf:callback>
I don't get any errors, but the page content is blank. I have verified the remote file exists and is readable. Curl is installed and working on both servers, I'm not sure what I might be missing.
Page URL - https://www.dragons-server.com/help/privacy/
