Page 1 of 1

Application in ASP is there the same in php?

Posted: Thu Dec 30, 2004 8:56 am
by pelegk2
thnaks i advance
peleg

Posted: Thu Dec 30, 2004 9:17 am
by feyd
huh?

Posted: Thu Dec 30, 2004 9:20 am
by pelegk2
ok
in ASP you have something that is called Application that is like a session but its global for all the users
and it lives for ever (or until u delete it)
is there something like that in php?

Posted: Thu Dec 30, 2004 9:25 am
by feyd
use a database for persistant things.

Posted: Thu Dec 30, 2004 9:39 am
by carlmcdade
pelegk2 wrote:ok
in ASP you have something that is called Application that is like a session but its global for all the users
and it lives for ever (or until u delete it)
is there something like that in php?

Nope, I was complaining about this in another thread. I miss being able to set global.asa, application start and stop. There is no equivalent in PHP 4 and to be able to get the same functionality with Public, Private and Protected you have to go to PHP 5.

I really don't like PHP sessions in that you have to declare the start on a page by page basis and there is no global.asa. Now that I think about it PHP sessions behave more like ASP Application than actual sessions because of this.


viewtopic.php?t=28924

Posted: Thu Dec 30, 2004 9:48 am
by feyd
you can set php to auto-start sessions... ;)

Posted: Thu Dec 30, 2004 10:50 am
by pelegk2
what do u mean by "use a database for persistant things"?

Posted: Thu Dec 30, 2004 1:49 pm
by rehfeld
pelegk2 wrote:what do u mean by "use a database for persistant things"?
if you want to permanently store something, put it in a database

Posted: Thu Dec 30, 2004 5:06 pm
by pelegk2
yes i understand that
but it means ojn every visitor to access the db\!\1

Posted: Thu Dec 30, 2004 5:09 pm
by feyd
and that's a bad thing? do you know how many database requests go to the database per page of this forum alone? It's more than 10.. I can tell you that.

Posted: Fri Dec 31, 2004 5:25 am
by pelegk2
ok:)