This should work unless some restrictions are set on that PHP installation.
You may also try simply
file_get_contents('http://ttc.org.nz/cgi-bin/tuesday.pl');
> $lastline = system ('http://ttc.org.nz/cgi-bin/tuesday.pl', $output);
This would probably never work. You normally cannot execute remote files.
> $retval .= 'b' . $output;
> $lastline = exec ('http://ttc.org.nz/cgi-bin/tuesday.pl', $output);
> $retval .= 'c' . $output;
Same here.
> $lastline = exec("./cgi-bin/tuesday.pl", $output);
This will likely be "../cgi-bin/tuesday.pl" with 2 dots, because it looks
like your running pmwiki.php file is in a directory pmwiki, while the cgi-
bin directory looks like it is in the document root, and not inside the
pmwiki directory.
> return $retval;
For testing purposes, in order to see the array values rather than 'Array',
try
return pre_r($retval);
Petko
_______________________________________________
pmwiki-devel mailing list
pmwiki...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
This was incorrect, sorry. You can use the pre_r() function on all $output
variables above, not on $retval:
$retval .= 'c' . pre_r($output);