|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-11 04:08 UTC] n dot dose at leo-media dot de
ISAPI mode. IIS 5.1
safe_mode_exec_dir = C:\\Inetpub\cgi-bin\
Calls to exec system with {safe mode = On} result in an extra "/" being prepended to the executable file's name:
Warning: Unable to fork [C:\\\\Inetpub\cgi-bin\\/myprog.exe] in c:\inetpub\wwwroot\index.php4
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 16:00:01 2025 UTC |
ISAPI mode. IIS 5.1 safe_mode_exec_dir = C:\\Inetpub\cgi-bin\ <?php exec("myprog.exe"); ?> Calls to exec system with {safe mode = On} result in an extra "/" being prepended to the executable file's name: Warning: Unable to fork [C:\\\\Inetpub\cgi-bin\\/myprog.exe] in c:\inetpub\wwwroot\index.php4 (the fork error results from other issues, but notice the /myprog.exe)was having the same problem. found that you have to use the entire path to you executable: safe_mode_exec_dir = "C:\php\exec" <?php exec("C:\php\exec\myprog.exe"); ?> works for me CLI