|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-28 14:23 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 11:00:02 2025 UTC |
Description: ------------ PHP can't properly execute command "sudo" in Linux. Commands used in this method look to work fine, but I can't receive communique of system. Reproduce code: --------------- <?php echo system('sudo somenotexistingcmd'); echo shell_exec('sudo somenotexistingcmd'); passthru('sudo somenotexistingcmd'); ?> Expected result: ---------------- Output like this: sudo: somenotexistingcmd: command not found Actual result: -------------- No output.