PHP - Half the way response and continue PDF processing

Reply

Join Date: Jan 2005
Posts: 5
Reputation: pepsoft239 is an unknown quantity at this point 
Solved Threads: 0
pepsoft239 pepsoft239 is offline Offline
Newbie Poster

PHP - Half the way response and continue PDF processing

 
0
  #1
Jan 20th, 2005
Hi All

I have the following requirement to be implemented in PHP & My SQL database with Apache Server.

I have to write a PHP which will get a HTTP request from Client and immediately respond back with a Token # (Random number). Once the Token number has been sent back to Client, PHP should continue processing on the Server side as follows. (back end processing after response)

1) Fire some SQL queries to My SQL
2) Create a PDF with the output
3) Create a directory with Token # and store the PDF.

Client will download the PDF with the URL after some time.

Is there any way of implementing asynchronous handling in PHP i.e send token # half the way and continue generating & storing PDF on the server?

Any pointers will be of great help.

Thanks in advance
Praveen
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1
Reputation: zobier is an unknown quantity at this point 
Solved Threads: 0
zobier zobier is offline Offline
Newbie Poster

Re: PHP - Half the way response and continue PDF processing

 
0
  #2
Feb 24th, 2005
Here's how we've done it b4:

Response script:
[PHP]
<?php
exec ( "php -q $processing_script $argument_1 </dev/null &>/dev/null &" );
echo "response";
?>[/PHP]
Processing script:
[PHP]
<?php
$argument_1 = $_SERVER [ 'argv' ][ 1 ];
do_it ( );
?>[/PHP]
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC