Link to home
Start Free TrialLog in
Avatar of narmi2
narmi2

asked on

php's exec function

Dear Experts,

I have a php page which uses the following line:

exec("sh script.sh", $retval);

I have script.sh in the same directory as my php page,  How do I make script.sh safe?  What permissions should it be set too?

Thanks
ixf
ASKER CERTIFIED SOLUTION
Avatar of karoldvl
karoldvl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of narmi2
narmi2

ASKER

The script downloads a file from the internet, processes it to create another file based on the original downloaded file, then deletes the original downloaded file.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial