Current location: Hot Scripts Forums » Programming Languages » PHP » question about processing data of php ?


question about processing data of php ?

Reply
  #1 (permalink)  
Old 02-24-08, 04:12 AM
Mythvn Mythvn is offline
Wannabe Coder
 
Join Date: Jan 2006
Posts: 111
Thanks: 2
Thanked 0 Times in 0 Posts
question about processing data of php ?

I'm having a question about processing data of PHP : an user submits his data to the server then the PHP script will have to process it and print the output to the browser but if the user closes the browser before the PHP can print the output, will the PHP script still process the data at the server-side to the end or it will stop immediately ? Can anybody tell me please ?
Reply With Quote
  #2 (permalink)  
Old 02-24-08, 04:21 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
PHP doesn't know if the user closed the browser until it attempts to send output to it. So if you have the form processor at the top of your script, before output is being sent, and the user has closed his window AFTER submitting the data, then PHP would process it.
Reply With Quote
  #3 (permalink)  
Old 02-24-08, 04:53 AM
Mythvn Mythvn is offline
Wannabe Coder
 
Join Date: Jan 2006
Posts: 111
Thanks: 2
Thanked 0 Times in 0 Posts
oic, if so then it may cause server-overload. are there any way to prevent this ?
Reply With Quote
  #4 (permalink)  
Old 02-24-08, 04:58 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
How could this possibly cause server-overload? How many users close their window right after submitting a form?

Anyway, this might help:
www.php.net/features.connection-handling
www.php.net/connection_aborted
Reply With Quote
  #5 (permalink)  
Old 02-24-08, 05:03 AM
Mythvn Mythvn is offline
Wannabe Coder
 
Join Date: Jan 2006
Posts: 111
Thanks: 2
Thanked 0 Times in 0 Posts
i don't know but just a little worry, anyway thank you very much for your help
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
question about sending checkboxes values to php script? darksniperx PHP 3 10-13-07 01:03 PM
php mysql question jonnekke PHP 1 10-12-07 07:01 AM
Need Php Script To Export Mysql Data RAJPHP PHP 1 03-09-06 05:09 AM
convert from html to php question ZviT PHP 1 07-07-05 07:32 AM
PHP multi-dimensional array sorting issue aqw PHP 2 06-24-05 11:09 PM


All times are GMT -5. The time now is 07:37 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.