note 93455 added to function.shell-exec

From: Date: Thu, 10 Sep 2009 16:18:09 +0000
Subject: note 93455 added to function.shell-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-160424@lists.php.net to get a copy of this message
Problem calling python script from PHP using shell_exec. If the command is something like this "C:\program files\python 3\python.exe myPy.py" would not run. I used dir /x to determine the 8 character equivalent of "program files" and "python 3" sub-directories. Substituting the 8 character equivalents into the command fixed the problem. ---- Server IP: 208.69.120.35 Probable Submitter: 207.30.169.4 ---- Manual Page -- http://www.php.net/manual/en/function.shell-exec.php Edit -- https://master.php.net/note/edit/93455 Del: integrated -- https://master.php.net/note/delete/93455/integrated Del: useless -- https://master.php.net/note/delete/93455/useless Del: bad code -- https://master.php.net/note/delete/93455/bad+code Del: spam -- https://master.php.net/note/delete/93455/spam Del: non-english -- https://master.php.net/note/delete/93455/non-english Del: in docs -- https://master.php.net/note/delete/93455/in+docs Del: other reasons-- https://master.php.net/note/delete/93455 Reject -- https://master.php.net/note/reject/93455 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160424) next »