Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
why is php exec not working on digitalocean
I have script that create folder for any user that sign up, and the script working perfectly fine on local, after pushing to server it refuse to work.
$createDir = "cd ../../merchants && mkdir ".$merchant->merchant_id" && cd ".$merchant->merchant_id; exec($createDir);
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×