I create a quick route that triggering an fn that runs shell_exec() to back up my database. To save server space, I also want to zip what I dumped I’m not sure why the zip command never runs even if I put a sleep() after the first one, and in betweens. What did I do wrong? Note : the tar
Tag: shell-exec
shell_exec not running in websever
I have an apache web sever with php file /var/www/html/test.php, and servo.py in the same directory. When I go to localhost/test.php it doesn’t work. Yet when I run test.php in an IDE it works fine. …
executing a Powershell script from php
I’m trying to execute a powershell script from PHP, but it does not seem to work. The script ‘newEvent.ps1’ creates an event on the Exchange server. It outputs: If I run powershell.exe C:wampwwwantassetspsnewEvent.ps1 on the command-line, it works fine. This is the first time im attempting something like this. I ran Set-ExecutionPolicy RemoteSigned -Scope LocalMachine but it still gives me