Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Cancel
6
  • try to use exec() and shell_exec() Commented Feb 15, 2017 at 6:34
  • @Ravi, i did, all have same results (i use php 'system' for question because it simplifies output) Commented Feb 15, 2017 at 6:37
  • Have you tried with sudo ? it's work on my system ! Commented Feb 15, 2017 at 6:38
  • @Ravi, tested now, same problem with sudo too (added to sudoers user http, sudo ls -la /tmp ... empty) ... maybe it is php version related. some bug or new restriction/config Commented Feb 15, 2017 at 6:47
  • Could you run stat /tmp in both cases and edit that into the question too? Commented Feb 15, 2017 at 7:15