[SOLVED] global variables
Posted: Wed Mar 10, 2004 10:50 am
hi,
I'm am new to PHP. I have a JAVA application for which I use a custom 500 error page made with PHP. To notify me whenever my Servlet engine is down.
I successfully made the page sent me an email. However, I wish to store some variables globally (servletContext in JAVA) so the page remembers when the last email was sent. This to prevent hundreds of emails from being sent once the server is down.
My question is: How can I store variables globally so all PHP pages, all clients and all requests can use them.
Example code would very much be appreciated.
Kind regards,
Joost Schouten
I'm am new to PHP. I have a JAVA application for which I use a custom 500 error page made with PHP. To notify me whenever my Servlet engine is down.
I successfully made the page sent me an email. However, I wish to store some variables globally (servletContext in JAVA) so the page remembers when the last email was sent. This to prevent hundreds of emails from being sent once the server is down.
My question is: How can I store variables globally so all PHP pages, all clients and all requests can use them.
Example code would very much be appreciated.
Kind regards,
Joost Schouten