php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44682 system/exec/shell_exec a php script doesn't work in background
Submitted: 2008-04-10 10:37 UTC Modified: 2008-04-13 08:41 UTC
From: saveweb at inwind dot it Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.2.5 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: saveweb at inwind dot it
New email:
PHP Version: OS:

 

 [2008-04-10 10:37 UTC] saveweb at inwind dot it
Description:
------------
I want to start a php script in background. 
I have a page that starts the php-win.exe passing parameters and it must not wait for the result.

example: exec ("c:/php/php-win.exe test.php")
where test.php is the script that must run in background.

I want that my start page does not wait the execution of php-win.exe.

I made a lot of tests using exec, system, shell_exec etc and changing parameters.

examples:
exec ("c:/php/php-win.exe test.php &");
exec ("c:/php/php-win.exe test.php > out");
exec ("c:/php/php-win.exe test.php 1> out 2>out &");
exec ("start c:/php/php-win.exe test.php > out");
etc. etc.

but nothing.

2 strange things:
1) in the past using php4 it worked fine.
2) if i try to start another command (not php-win.exe) it works fine 
(example: exec("test.exe &")): the process starts in background and the page doesn't wait.


Expected result:
----------------
expected result:
the php script starts and run in background
the page doesn't wait the end of php-win.exe

Actual result:
--------------
The start page waits until the script ends

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-12 01:19 UTC] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2008-04-13 08:41 UTC] saveweb at inwind dot it
thanks but i don't understand how i can have more details.

In the support page i didn't found any site or forum where i can make this question.

Please, could you give me more informations ?

Thanks in advance

Saverio
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 18:01:34 2024 UTC