I know I can do this with sessions, reason I am asking is 

webserver should not be able to create file (for security reasons),
I would of maybe thought php could create a file as a different user.
php is not always used by the box owner. I find it strange that such a
option
Is only available if you run the box or the webserver is run as that
user.

Sessions and such need configurations that need to be configured by the
server admin
Ect.... I was hoping there was a way that didn't rely on a special
configuration
And stayed in the users directory

-------
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
-------


-----Original Message-----
From: Warren Vail [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 27 February 2002 6:51 PM
To: Chris Kay
Subject: RE: [PHP] Writing to files


Suggest you understand how session management works.  Whether you store
in a file or database, the entries are removed if the user fails to
return after a limit amount of time, and are kept in a separate table in
the database. You can post the results to your actual data tables when
you are completed. If you don't want to store the data in files, or in a
database, what did you have in mind?  There is no rule that says you can
only store permanent data in a data base.

-----Original Message-----
From:   Chris Kay [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, February 26, 2002 11:43 PM
To:     'Warren Vail'; [EMAIL PROTECTED]
Subject:        RE: [PHP] Writing to files


The data will be stored in mysql, but I don't wish to store in sql
untill its completed. In case a user leave the application before
completing it.

-------
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
-------


-----Original Message-----
From: Warren Vail [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 February 2002 6:37 PM
To: Chris Kay; [EMAIL PROTECTED]
Subject: RE: [PHP] Writing to files


What you are describing is exactly how session management works, storing
things in a file in the /tmp directory.  Perhaps you could consider
using the session save handler functions to store the session data in
your protected database (MySQL?).

Warren Vail

-----Original Message-----
From:   Chris Kay [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, February 26, 2002 11:19 PM
To:     [EMAIL PROTECTED]
Subject:        [PHP] Writing to files


Question I have is, Anyway know of a better way to store temp
information?

I have a problem that a script I use, uses many pages and after each
page the information from the form Is stored and the next page is shown
ect....

It uses more than 20 variables so I can not store the data in cookies. I
could store the data in a temp file created but problem is that the
webserver would need to create The file which is a security risk (I
would like to find another way other than this). I don't really want to
use sessions but if it's the last resort I guess I will have to.

Other than the above any one have a better soluition?

Running php 4.1.1 on RH7.2

-------
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
-------


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






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

Reply via email to