Difference between revisions of "C.php"

From Organic Design wiki
m
m
Line 4: Line 4:
 
$server = $_SERVER['HTTP_HOST'];
 
$server = $_SERVER['HTTP_HOST'];
 
$htdocs = $_SERVER['DOCUMENT_ROOT'];
 
$htdocs = $_SERVER['DOCUMENT_ROOT'];
#if ( !ereg( "\\/$", $htdocs ) ) $htdocs .= '/';
+
if ( !ereg( "\\/$", $htdocs ) ) $htdocs .= '/';
  
 
$gcc = $htdocs.'wiki/gcc';
 
$gcc = $htdocs.'wiki/gcc';

Revision as of 05:30, 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'; $article = shell_exec("$gcc -v");


?>