Bytes Expert Newtork: Connect with experts in IT / Business | Expert Topics



Search


Go Back   Programmers Resource > Code Section > PHP Tips & Code Snippets
User Name
Password


 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 05-23-2006, 12:07 AM
Frank's Avatar
Frank Frank is offline
ASP Geek
 
Join Date: May 2003
Location: Northern Kentucky
Posts: 267
Mimic ASP's "Application variables" in PHP

Anyone experienced with ASP programming knows how useful Application Variables in ASP can be. However, ASP programmers who move over to PHP will be disappointed to find that PHP does not have any equivalent to ASP's Application Variables. This can be a problem if you have small bits of data that you wish to be common for all users of your script. This was the situation I ran into recently, and after a bit of searching, I discovered this workaround that essentially allows PHP to mimic ASP's Application Variables. It uses flat text files to store information which can be easily accessed and modified from any PHP script that includes the code on the following page.

http://www.leosingleton.com/projects/code/phpapp/
__________________
Remember, Google is your friend!

Frank
-----
PCMechanic - Great resource for PC hardware and software help and more!
http://www.pcmech.com
-----
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump



All times are GMT -5. The time now is 08:00 AM.



Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
All content Copyright ©1999 - 2010, Programmers Resource, unless otherwise noted.