Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Robert Cummings
On Sat, 2007-06-09 at 22:23 +0100, Stut wrote: > Tijnema wrote: > > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: > >> Tijnema wrote: > >> > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: > >> >> Tijnema wrote: > >> >> > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: > >> >> >> Tijnema wrote: > >> >> >> > Hmm

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Tijnema
On 6/9/07, Richard Lynch <[EMAIL PROTECTED]> wrote: 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 exe

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Richard Lynch
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

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Tijnema
On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: >> Tijnema wrote: >> > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: >> >> Tijnema wrote: >> >> > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: >> >> >> Tijnema wrote: >> >> >> > Hmm, fseek seems cool

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Stut
Tijnema wrote: On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: >> Tijnema wrote: >> > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: >> >> Tijnema wrote: >> >> > Hmm, fseek seems cool, but what about FTP resources? If I open them >> >> > with

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Tijnema
On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: >> Tijnema wrote: >> > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: >> >> Tijnema wrote: >> >> > Hmm, fseek seems cool, but what about FTP resources? If I open them >> >> > with ftp_connect, do I

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Tijnema
On 6/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Sat, 2007-06-09 at 23:09 +0200, Tijnema wrote: > On 6/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-06-09 at 22:00 +0100, Stut wrote: > > > Tijnema wrote: > > > > Hmm, fseek seems cool, but what about FTP resources? If I

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Robert Cummings
On Sat, 2007-06-09 at 23:09 +0200, Tijnema wrote: > On 6/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-06-09 at 22:00 +0100, Stut wrote: > > > Tijnema wrote: > > > > Hmm, fseek seems cool, but what about FTP resources? If I open them > > > > with ftp_connect, do I need to fetch

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Stut
Tijnema wrote: On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: >> Tijnema wrote: >> > Hmm, fseek seems cool, but what about FTP resources? If I open them >> > with ftp_connect, do I need to fetch all data from FTP again, and then >> > just

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Tijnema
On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: > On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: >> Tijnema wrote: >> > Hmm, fseek seems cool, but what about FTP resources? If I open them >> > with ftp_connect, do I need to fetch all data from FTP again, and then >> > just trash all data I

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Stut
Tijnema wrote: On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: > Hmm, fseek seems cool, but what about FTP resources? If I open them > with ftp_connect, do I need to fetch all data from FTP again, and then > just trash all data I don't need? Yes, but depending on what you're actually

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Tijnema
On 6/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Sat, 2007-06-09 at 22:00 +0100, Stut wrote: > Tijnema wrote: > > Hmm, fseek seems cool, but what about FTP resources? If I open them > > with ftp_connect, do I need to fetch all data from FTP again, and then > > just trash all data I don't

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Tijnema
On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: > Hmm, fseek seems cool, but what about FTP resources? If I open them > with ftp_connect, do I need to fetch all data from FTP again, and then > just trash all data I don't need? Yes, but depending on what you're actually doing you may be

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Robert Cummings
On Sat, 2007-06-09 at 22:00 +0100, Stut wrote: > Tijnema wrote: > > Hmm, fseek seems cool, but what about FTP resources? If I open them > > with ftp_connect, do I need to fetch all data from FTP again, and then > > just trash all data I don't need? > > Yes, but depending on what you're actually do

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Stut
Tijnema wrote: Hmm, fseek seems cool, but what about FTP resources? If I open them with ftp_connect, do I need to fetch all data from FTP again, and then just trash all data I don't need? Yes, but depending on what you're actually doing you may be able to cache enough to skip large chunks in s

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Tijnema
On 6/9/07, Stut <[EMAIL PROTECTED]> wrote: 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? > > Like this: > > page1.php: > > session_start(); > > $fp = fopen("test.php","r"); > $data = fread(

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Robert Cummings
On Sat, 2007-06-09 at 22:44 +0200, Tijnema wrote: > Hi, > > 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? > > Like this: > > page1.php: > > session_start(); > > $fp = fopen("test.php","r"); > $data = fre

Re: [PHP] Keeping file pointers open after script end

2007-06-09 Thread Stut
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? Like this: page1.php: Continue"; ?> page2.php: No. File pointers are resources, and resources cannot be stored in the session. What exact

[PHP] Keeping file pointers open after script end

2007-06-09 Thread Tijnema
Hi, 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? Like this: page1.php: Continue"; ?> page2.php: Thanks, Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php