I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
Det virker ikke ØV :o( giver følgende fejl : Warning: exec(): Unable to fork [C:\Inetpub\wwwroot\Default_domain\shutdown.exe /r /f] in C:\Inetpub\wwwroot\Default_domain\test.php on line 3
Jeg fatter bare ikke hvorfor det ikke virker... Jeg mener hvis jeg kan få lov at køre en ping.exe så kan jeg altså ikke forstå hvorfor jeg ikke får lov at køre hverken at.exe eller shutdown.exe ???
Jeg prøvet at kigge i php.ini men jeg kan ikke lige se om der skulle være noget galt...
Kan det være fordi jeg køre PHP som ISAPI og ikke CGI ? Det budre da ikke gøre en forskeld.
I would like to confirm that this issue relates to permissions on %SYSTEMROOT%\SYSTEM32. The user (usually the anonymous login) must have execute permissions on cmd.exe
This is unlike most other programming languages. For example, in C the spawn and exec functions do not try to open a shell, they create the new process directly. PHP creates the new process via cmd.exe (or command.com) much like the C system() function. This is good for those of you who are trying to run batch files but this is very ineffecient for running other .exe files.
I feel uneasy about lifting permissions in my system32 directory but you can get around this by copying cmd.exe to your PHP directory. Windows will look there first and if it is not there it will check the path. Note: I mean the directory where php.exe is, not your script directory.
I have confirmed this by running filemon.exe while trying to execute a script, and you can see it trying to start the cmd.exe process.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.