Click to See Complete Forum and Search --> : *****APPLICATION LEVEL VARIABLES*****


Anon
03-01-2002, 12:12 PM
Hello!!! I asked about this like 3 days ago....does NO ONE have an answer for me?:

Does PHP have the ability to or will it soon have the ability to utilize Application level variables? I didn't see anything about it in the users manual (at least what i thought might be about Application level vars.)

I need to convert an ASP application that absolutely needs to utilize Application level variables into a PHP version. (Flash chat type thing..).

I don't want to have to use JSP.

-j

Anon
03-01-2002, 01:36 PM
I do not quite understand, what you mean by application level vars!!!

No serverside scripting language is capable of exchanging vars with plugins directly including JSP

The only way is to use hidden fields and javascript to have an exchange.

Anon
03-01-2002, 04:45 PM
hi,
your problem can be solved with sessions.

Greetings
juggler

Anon
03-01-2002, 04:54 PM
I don't think so....

How, then, would two clients share the SAME session variable (kinda like a chat iteration)?

-j

Anon
05-31-2002, 04:53 AM
What people suggest is that you store the variables in a file or a database table, then every session shall have access to them. I know this is not as elegant as ASP, but if you write an include file for this task, then it is just as easy to create an application variable in PHP.

Anon
06-09-2002, 07:36 AM
There is a nice class by nathan@0x00.org that implements application-level variables like in Coldfusion and ASP:
http://0x00.org/php/phpApplication/