I am trying to run command from a web page (php) to my linux server. My php page look like this: $old_path = getcwd();
chdir('/var/www');
$output = shell_exec('./test.pl');
chdir($old_path);
test.pl is a simple test file that create a txt file.
If I run the command php /var/www/page.php
everything works fine, but when I request the page in the browser nothing happen.
Thanks !