$f = empty($_GET['f']) ? "" : $_GET['f'];
if( file_exists($f ) ){
$f = realpath($f);
$cmd = " php -s $f ";
#echo $cmd;
exec($cmd, $op);
echo implode("\r\n", $op) ;
}else{
echo "Requested file not found : $f ";
}
Usefull PHP Command line Switches
Thursday, March 13, 2008Posted by Hemant Patel at 9:15 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment