Re: Keeping file pointers open after script end
| From: | Richard Lynch | Date: | Sat, 09 Jun 2007 21:38:54 +0000 |
| Subject: | Re: Keeping file pointers open after script end | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256484@lists.php.net to get a copy of this message | ||
On Sat, June 9, 2007 3:44 pm, Tijnema wrote:
> Is there any way to keep a file pointer open after script is finished,
> so that it can be access later, by passing it through session?
No.
Well, okay, *MAYBE* you could hack something up with exec() and fork
some kind of external process that keeps it open and...
You'd be better off to:
1. just re-open the file and see how badly it affects performance
2. write a custom PHP daemon to keep the file open and talk over port
Why do you think you need this -- Sometimes telling us the Big Picture
is much more fruitful than just asking such a specific question.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?