Heeft iemand een idee hoe ik met php (vanuit de browser) een shell command (linux) kan sturen, of dat dit uberhaupt mogelijk is?
Dat kan met exec() / system() :)
exec is om programma's te starten, system is meer wat je zoekt denk ik.

Voorbeeld van php.net
<?php
echo '<pre>';

// Outputs all the result of shellcommand "ls", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$last_line = system('ls', $retval);

// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>

cool...

hier kan ik wel wat mee..
ThnQ
Dit heb ik uit een 'hack script', ooit achter gelaten door een scriptkiddy op mijn website. Maar het laat wel mooi zien welke mogelijkheden er zijn om een commando uit te voeren:
<?php
function ex($cfe)
{
$res = '';
if (!empty($cfe))
{
if(function_exists('exec'))
{
@exec($cfe,$res);
$res = join("\n",$res);
}
elseif(function_exists('shell_exec'))
{
$res = @shell_exec($cfe);
}
elseif(function_exists('system'))
{
@ob_start();
@system($cfe);
$res = @ob_get_contents();
@ob_end_clean();
}
elseif(function_exists('passthru'))
{
@ob_start();
@passthru($cfe);
$res = @ob_get_contents();
@ob_end_clean();
}
elseif(@is_resource($f = @popen($cfe,"r")))
{
$res = "";
while(!@feof($f)) { $res .= @fread($f,1024); }
@pclose($f);
}
}
return $res;
}
?>

En dan heb je ook nog backsticks. $var = `ls ./`; Nu zit in $var de uitvoer van 'ls ./'. Maakt gebruik van shell_exec().
Deed het wat leuks op je site? :+

Reageren