I'm new commer for php. Recently, I'm trying to run a linux shell script by script below:
<?
exec("/home/script/sendemail");
echo "successful done!";
?>
The shell scirpt "sendemail" seems like this:
#!/bin/bash
cd /home/project
cp osa.org osa.org.old
rm -f osa.org
Bur after my runing php script, nothing happened in linux, I tired others functions such as system() and passthru, and still got nothing runing. Could anybody tell me what's wrong with my script? Thanks! :p 😉