I
I
Ilya Kaznacheev2014-08-08 00:23:10
PHP
Ilya Kaznacheev, 2014-08-08 00:23:10

Why doesn't php exec() work on Windows?

On a virtual machine under winXP, exec() and system() do not work, the script just hangs in the browser and nothing happens. Everything works fine without these commands.
safe_mode Off Off
Sample code;

<?php
exec('calc');
?>

What can prevent these operators from working on Windows?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Kaznacheev, 2014-08-08
@Color

The answer is this: in php.ini line
must be

allow_url_include = On

S
svd71, 2014-08-08
@svd71

try double quotes
php.ru/forum/viewtopic.php?t=14047

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question