hi..
i developed the GUI for the grid in my company.but i have problem in executing the linux coommands thru php scripts.my platform is linux.i use php5,mysql n apache 2.0.
pls help me how to run the linux commands thru php code.
eg: <?php
$display = exec('ls');
echo "$display";
?>
it doesn give nay output..
pls help..thanks..

<?php
echo shell_exec('whoami');
?>
this gives the output as apache..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.