need help: global variable

Any problem with PHP can be disscused here
Locked
Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

need help: global variable

Post by Lixas »

I'm looking for the way, how to create and set variable that would be global in all server, like $_SESSION is variable for one user, but i need that this variable would be accessible from all sessions. Is there any way to reach this by using PHP or apache functions? I hope you get what i want to do. Please help me to find the way how to handle this.


Image
barnes
Posts: 202
Joined: Tue May 16, 2006 5:09 am

Post by barnes »

I ran into this same issue. I'd love to hear someones solution.
Flipper3
Posts: 353
Joined: Tue Feb 28, 2006 12:34 am

Post by Flipper3 »

Well, you could try setting a cookie and reading it from every page on that domain. I really don't know any other way, sorry. :(
Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

no, it will not work
Image
Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

at last, i have found an idea how to do it :) i have thought that database is used in all sessions, the same is with files. so, the decision for my problem could be some kind of flat file database :) Here is the script that i have found on the net

-=CLOSED=-
Attachments
simpleinipraser-2006-01-16.zip
(1.61 KiB) Downloaded 137 times
Image
Locked