Google Flix Engine Linux Reference Manual User Manual
Page 467
7.13 CGI
461
flush(); if(ini_get("output_buffering")) ob_flush();
}
echo "\r\n\r\n
# output the function calls
echo "
process_sample.php version 1.8
\n";
# Load the FlixEngine module
# add extension_dir/.. to ’include_path’ as this is often missing from php.ini
set_include_path(get_include_path().PATH_SEPARATOR.ini_get("extension_dir")."/..");
$flixphp = ’flixengine2.php’;
echo ’Loading flix: ’ . $flixphp . "\n
";
include ($flixphp);
echo "Flix Engine client library v" . Flix2_Version() . "
";
echo str_replace("\n","
",Flix2_Copyright()) . "
$rpchost = "localhost";
$prefix
= "/var/www/cgi-bin/";
$outdir
= $prefix."flixmedia/out/";
##verify outdir’s presence and accessibility
if ($rpchost == "localhost" && !(is_dir($outdir) && is_writeable($outdir))) {
$t=array("’$outdir’",’$outdir’); $file=__FILE__;
echo "
****************************************
\n".
"WARNING: $t[0] MUST exist and be writeable by flixd.\n".
"
Please make $t[0] accessible or modify the $t[1]".
" value defined in ’$file’.
\n";
$g=‘grep -m 1 -H -n ’^\$outdir’ $file‘;
if($g) {
print "The definition of $t[1] can be found here:
\n$g
\n";
}
echo "****************************************
\n";}
echo "