First of all, for that include to work you have to let PHP transparently open remote files through the HTTP and other protocols, which could be a security risk for your
server.
To do what you want, you have two options:
- Change your remote PHP script to write its output to a variable. You would then do something like:
include('some_file.php'); // This sets $outputhtml
$this->content->text = $outputhtml; - Use PHP's output buffering functions, e.g.:
ob_start();
include('some_file.php');
$outputhtml = ob_get_clean(); // ob_get_clean requires PHP >= 4.3.0
$this->content->text = $outputhtml;
Jon