Re: where do you store app wide data?
From: worzel (asda_at_sdarta.com)
Date: 01/03/05
- Next message: worzel: "Re: where do you store app wide data?"
- Previous message: Good Man: "Re: SSL questions"
- In reply to: Andrew Bullock: "Re: where do you store app wide data?"
- Next in thread: Wayne: "Re: where do you store app wide data?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 3 Jan 2005 08:47:52 +0800
re:
> I think my point really was, that it probably doesnt exist because there
> isnt a need for it as such.
There is definitely a need for it if PHP is to be taken more seriously by
the enterprise folk. But then again, maybe this isn't a goal of PHP?
"Andrew Bullock" <trullockNO@SPAMyahoo.com> wrote in message
news:YQVBd.113$tF3.77@newsfe5-gui.ntli.net...
> Oli Filth wrote:
>> worzel wrote:
>>
>>> Thanks -feel like I am talking in a foriegn language here!
>>>
>>> Hang on, I suppose thats exacctly what I am doing!!
>>> I think some concepts seem obvious to me that are not handled the same
>>> way in PHP world. Maybe this is why I think I am being clear enough, but
>>> obviously not the case.
>>>
>>> I have to say at this point that if this concept is not even implemented
>>> and the concept is not even an issue that is understood as something
>>> that is lacking - then I am beginning to wonder why PHP is praised so
>>> well for being a web app development platform. I thought there was a lot
>>> more to it than it simply being free.
>>>
>>> I have heard though that many go throuh an initial dislike before they
>>> see the better side of it - I am yet to get there.
>>>
>>
>> I think the reason most people are not understanding the problem and
>> saying "use SESSION!!!" is because it's not a concept that PHP developers
>> face. For most PHP developers, if they want to share data between users,
>> they just use flat-files or a database (PHP has good support for MySQL,
>> etc.), and so the concept of "application-wide" would have no relevance
>> to them.
>>
>> AFAIK, there is no native PHP support for cross-session data. You made
>> the comparison with Java Servlets, AFAIK servlet instances all run in the
>> same process, and so it would be easy to share data. I don't think this
>> is the case with PHP modules.
>>
>> I think the solution would be to use serialize() and unserialize(), and
>> use a file/DB to store the results. With these functions, you can keep
>> data structures intact.
>>
>> Oli
>
> Im not just blindly shouting "USE SESSIONS".
> I agree with both of you, that not coming from a JAVA background, I am
> missing what "application wide" data is.
>
> As someone said in an earlier post, there is no specific support for
> storing data at runtime other than a global variable, without writing a
> custom library function.
>
>
> I think my point really was, that it probably doesnt exist because there
> isnt a need for it as such.
>
>
> Andrew
- Next message: worzel: "Re: where do you store app wide data?"
- Previous message: Good Man: "Re: SSL questions"
- In reply to: Andrew Bullock: "Re: where do you store app wide data?"
- Next in thread: Wayne: "Re: where do you store app wide data?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|