note 102308 added to function.popen

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.