RE: [PHP-DB] Question on FilesSessions

2004-11-19 Thread Gryffyn, Trevor
How are you storing the file in your PHP code?

If it'll fit in a variable, it should be able to be stored in $_SESSION.

This might mean using serialize() and unserialize().

Although someone may have a better way of doing this.  It seems to me
that storing an entire file in a variable is going to be cumbersome on
your server.  You might try storing the file name and path or something:

C:\somepath\somefilename.ext


Someone probably has a better way to do this, but those are my initial
thoughts.. Without much experience having to do something like this with
files and without knowing more about your situation.

-TG



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Friday, November 19, 2004 11:46 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] Question on FilesSessions
 
 
 Can you hold a file in a session?   I am trying to send a 
 file to a third page and it won't seem to work sending
 it in a session.   Does anyone know how to do this?
 
 Thanks
 
 
 Kathy A Wright | Keane Inc. | Suite: 
 Outside: 617-517-1706 | E-mail: [EMAIL PROTECTED]
 [ Mailing: 100 City Sq.  Charlestown, MA 02129 USA ]
 

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] Question on FilesSessions

2004-11-19 Thread Bastien Koert
Better to save the file locally, the pass the name in a session variable. 
otherwise the overhead of holding a multi Kb or Mb file will be killer on 
the system.

What are you trying to do with the file?
Bastien

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Question on FilesSessions
Date: Fri, 19 Nov 2004 11:45:45 -0500
Can you hold a file in a session?   I am trying to send a file to a third
page and it won't seem to work sending it in a session.   Does anyone know
how to do this?
Thanks
Kathy A Wright | Keane Inc. | Suite:
Outside: 617-517-1706 | E-mail: [EMAIL PROTECTED]
[ Mailing: 100 City Sq.  Charlestown, MA 02129 USA ]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php