Jump to content

Creating a Global Server Variable


bluejay002

Recommended Posts

you can create variables but $_SERVER['SERVER_NAME']; is part of PHP itself, I don't think your going to get a much faster response with anything. But then again you aren't being clear about what your doing or what you want? What does a database or file have to do with the $_SERVER['SERVER_NAME']; ?

Thanks for the fast reply.

 

Well, I am not trying to replace or do anything with $_SERVER['SERVER_NAME']. Its just that I want to create a variable that would be reusable and can be seen by any visitor, just like the one I mention above, Whoever the user is, $_SERVER['SERVER_NAME'] will always be available. I want to make something similar to it.

 

I was somehow avoiding database coz I don't want to be datacentric. Alternatively, I was thinking of using a flat file instead. But before that, I want to go with the option of being able to create a server variable.

 

bluejay,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.