How to find process id from external command and use it for "Loading" page

Author Topic: How to find process id from external command and use it for "Loading" page  (Read 3171 times)

Offline abcdfTopic starter

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 2
  • Posts: 43
  • Karma: 2
Hello!
I am executing an external command from a PHP script, using the exec function. Since this program can take more than 1-2 minutes to run, I thought I should use a "Loading page...please wait". What I need is to be able to get the process id from the external program that is being run and, when this finishes, I'll start outputting the results.

Is there a way to do this?


Offline seo-webservices

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 1
  • Posts: 10
  • Karma: 0
Hi,

for loader better use jquery:

put a div on your page:
<div id="loader">any image or content you want</div>

On css:
#loader{ position: absolute; background-color: rgba(0, 0, 0, 0.9); width: 100%; height: 100%; top: 0; left: 0; z-index: 1500; }

For Jquery:

$(window).load(function() { 
  $("#loader").effect("clip",1500);


I hope this will helping you
})

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1261 Views
Last post 02-02-2012, 14:24:38
by c0ldf1re
0 Replies
1209 Views
Last post 07-03-2012, 06:05:33
by bryanbell
1 Replies
1414 Views
Last post 10-14-2014, 04:58:47
by Siservices
0 Replies
807 Views
Last post 01-21-2016, 15:28:43
by bearcatsandor
3 Replies
1326 Views
Last post 04-05-2017, 07:48:19
by apwebsolutions