Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 21st, 2005, 11:45 PM
Curt Gilroy
Guest
 
Posts: n/a
Default second issue

When posting my form to another page which runs various shell_execute
commands, the actual page that runs the command does not load, but the
command seems to be executed. Why is this? I tried putting a two second
sleep at the top of the page to make sure it loads, but it still doesn't
load. How can I make this page load before the command is processed by php?
  #2  
Old December 22nd, 2005, 12:15 AM
Janwillem Borleffs
Guest
 
Posts: n/a
Default Re: second issue

Curt Gilroy wrote:[color=blue]
> When posting my form to another page which runs various shell_execute
> commands, the actual page that runs the command does not load, but the
> command seems to be executed. Why is this? I tried putting a two
> second sleep at the top of the page to make sure it loads, but it
> still doesn't load. How can I make this page load before the command
> is processed by php?[/color]

By pushing the command into the background, e.g.:

shell_exec('command &' );


JW


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles