PHP system() executes twice, while exec() don't
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have strange problem:
when I execute command using system() it runs 2 times, but not when I use exec()
test.php
echo "something" . PHP;
|
testSystem.php
system(__DIR__ . "/test.php"); // runs 2 times
testExec.php
exec(__DIR__ . "/test.php"); // runs 1 time
My system is debian 9 and it could be that I changed something, but I don't know what, I was playing with systemd (runlevels) and it could be that I changed something. I remember I executed telinit command, but thats all I think. I'm not really sure when did this start happening.
Please help,
Thank you!
debian
add a comment |Â
up vote
0
down vote
favorite
I have strange problem:
when I execute command using system() it runs 2 times, but not when I use exec()
test.php
echo "something" . PHP;
|
testSystem.php
system(__DIR__ . "/test.php"); // runs 2 times
testExec.php
exec(__DIR__ . "/test.php"); // runs 1 time
My system is debian 9 and it could be that I changed something, but I don't know what, I was playing with systemd (runlevels) and it could be that I changed something. I remember I executed telinit command, but thats all I think. I'm not really sure when did this start happening.
Please help,
Thank you!
debian
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have strange problem:
when I execute command using system() it runs 2 times, but not when I use exec()
test.php
echo "something" . PHP;
|
testSystem.php
system(__DIR__ . "/test.php"); // runs 2 times
testExec.php
exec(__DIR__ . "/test.php"); // runs 1 time
My system is debian 9 and it could be that I changed something, but I don't know what, I was playing with systemd (runlevels) and it could be that I changed something. I remember I executed telinit command, but thats all I think. I'm not really sure when did this start happening.
Please help,
Thank you!
debian
I have strange problem:
when I execute command using system() it runs 2 times, but not when I use exec()
test.php
echo "something" . PHP;
|
testSystem.php
system(__DIR__ . "/test.php"); // runs 2 times
testExec.php
exec(__DIR__ . "/test.php"); // runs 1 time
My system is debian 9 and it could be that I changed something, but I don't know what, I was playing with systemd (runlevels) and it could be that I changed something. I remember I executed telinit command, but thats all I think. I'm not really sure when did this start happening.
Please help,
Thank you!
debian
debian
asked 2 mins ago
Borna
1035
1035
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475722%2fphp-system-executes-twice-while-exec-dont%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password