note 102308 added to function.popen
| From: | anonymous at anon dot com | Date: | Tue, 08 Feb 2011 09:39:58 +0000 |
| Subject: | note 102308 added to function.popen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-176758@lists.php.net to get a copy of this message | ||
If, on windows, you need to start a batch file that needs administrator privileges, then you can
make a shortcut to the batch file, click properties, check to on "run as administrator" on
one of the property pages, and then double-click the shortcut once (to initialize that "run as
administrator" business).
using popen("/path/to/shortcut.lnk") will then run your batch file with administrator
privileges.
handy for when you want to use cli php to do some long running tasks and that php-cli needs to use
sessions..
----
Server IP: 83.137.20.135
Probable Submitter: 82.161.37.94
----
Manual Page -- http://www.php.net/manual/en/function.popen.php
Edit -- https://master.php.net/note/edit/102308
Del: integrated -- https://master.php.net/note/delete/102308/integrated
Del: useless -- https://master.php.net/note/delete/102308/useless
Del: bad code -- https://master.php.net/note/delete/102308/bad+code
Del: spam -- https://master.php.net/note/delete/102308/spam
Del: non-english -- https://master.php.net/note/delete/102308/non-english
Del: in docs -- https://master.php.net/note/delete/102308/in+docs
Del: other reasons-- https://master.php.net/note/delete/102308
Reject -- https://master.php.net/note/reject/102308
Search -- https://master.php.net/manage/user-notes.php