Please let me know if PHP have application variable like ASP or Coldfusion?
How to share a variable with different client in PHP?
I want to know if somebody else also see the page when I visit the PHP page.Please tell me how to do it .Thanks
Not very sure what you meant. Your last paragraph said you want to know who else is visiting the same page. Is it something like what you see on the main page of this forum?
Users Browsing this Forum: followed by a list of logged in users.
I want to know if somebody else also see the PHP page at the same time when I visit the PHP page.
it is easy to do it with application variable.but I do not know if PHP has application variable liks ASP.
Please tell me how to do it IN php .
Thanks
Either u use a text file to store the user count in, or u try the"Shared Memory Functions" or check out Semaphore, Shared Memory and IPC Functions. I do not know how to use em, but i remember there's some class to simplify access. But i forgot its name, so maybe a search at hotscripts.com can help u. Hasta siempre