beautypg.com

Google Flix Engine Linux Reference Manual User Manual

Page 433

background image

7.13 CGI

427

HTML_END;

if($incret == FALSE) {

echo "

".

"ERROR: include(’flixengine2.php’) failed.
".

"ERROR: This include file loads the PHP bindings for the Flix Engine.
".

"ERROR: Without them this sample will be unable to contact the encoding daemon.
".

"ERROR: See the server error log for more information.".

"

";

echo "";

error_log("[flix2_sample.php] include(’flix2_engine.php’) failed, see ’PHP Notice’s’ above");

die;

}

echo <<

flix2_sample.cgi version 1.9

Instructions

  • In this sample you must choose a source file and an output file.

    If you leave all the other options blank then the sample will not call

    the corresponding Flix Engine function and the default will be used.

    When done please press the "Start Encode" button at the bottom of the page.

  • Mouse over a function name to see its default, if applicable.

  • Current source file directory: $indir


Source File

HTML_END;

if(is_dir($indir)) {

$first= TRUE;

#let glob sort the directory contents for us

$files= glob($indir.’*’);
echo "";

} else {

echo "WARNING couldn’t open $indir: is_dir() returned FALSE
\n";

}

echo <<

Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen