Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Close a connection, but keep the page running?
Old 08-01-2004, 03:37 PM Close a connection, but keep the page running?
Junior Talker

Posts: 2
Trades: 0
I'm trying to make a php script that, when accessed, sends some data to the user, closes the connection, but keeps running after the connection is closed.

Basically, the same thing as "exit", except that the page keeps running on the server after it's called.

I can't find any command for this, is it even possible?
Staticreator is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-01-2004, 05:20 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
What you need to use is the reguster_shutdown_function() function. This will let you register a function that will be run when PHP "shuts down".
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 08-01-2004, 06:41 PM
Junior Talker

Posts: 2
Trades: 0
It's not working, the connection isn't closed until after the function registered is finished running....
Staticreator is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Close a connection, but keep the page running?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11799 seconds with 12 queries