Difference between revisions of "C.php"

From Organic Design wiki
Line 1: Line 1:
 
<?
 
<?
 +
# C Compiler for XmlWiki Environment
 +
 +
$server = $_SERVER['HTTP_HOST'];
 +
$htdocs = $_SERVER['DOCUMENT_ROOT'];
 +
if ( !ereg( "\\/$", $htdocs ) ) $htdocs .= '/';
 +
 +
$gcc = $htdocs.'wiki/gcc';
 +
#$article = shell_exec( "$gcc $file" );
 
$article = 'test';
 
$article = 'test';
 +
 
?>
 
?>

Revision as of 01:48, 23 June 2006

<?

  1. C Compiler for XmlWiki Environment

$server = $_SERVER['HTTP_HOST']; $htdocs = $_SERVER['DOCUMENT_ROOT']; if ( !ereg( "\\/$", $htdocs ) ) $htdocs .= '/';

$gcc = $htdocs.'wiki/gcc';

  1. $article = shell_exec( "$gcc $file" );

$article = 'test';

?>