Hi All,
I am running php plugin in on top of form. Below is my PHP code.
Above PHP code is working when I am running in putty. But it's not working with PHP form plugin.
In the above PHP code, I am trying to copy and paste file from one folder to another folder as sudo.
Please help me how can I run my PHP code.
Thanks in Advance...
I am running php plugin in on top of form. Below is my PHP code.
<?php
exec('/usr/bin/sudo cp -avr /tmp/test.txt /etc/systemd/system/test.txt');
?>
exec('/usr/bin/sudo cp -avr /tmp/test.txt /etc/systemd/system/test.txt');
?>
Above PHP code is working when I am running in putty. But it's not working with PHP form plugin.
In the above PHP code, I am trying to copy and paste file from one folder to another folder as sudo.
Please help me how can I run my PHP code.
Thanks in Advance...
Last edited: