How do we clear the cache in our website using php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

Post by andym01480 »

phpBB is pretty reliable in IE, so it must work!

What is

Code: Select all

$_SERVER['SERVER_SOFTWARE']
?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Which server you are using (Apache, IIS, Xitami, lighttpd, etc).
User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

Post by andym01480 »

Apache on Linux for public and Apache on Windows for development
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Sorry, what I meant was, the 'SERVER_SOFTWARE' server var tells you what server application is running on the server, like Apache Httpd, IIS, etc.
User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

Post by andym01480 »

LOL!
joseph
Forum Newbie
Posts: 24
Joined: Mon Jul 03, 2006 6:15 am

Post by joseph »

so what is this

Code: Select all

$_SERVER['SERVER_SOFTWARE']
?

This will work for cpanel or phpmyadmin?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

The 'SERVER_SOFTWARE' index of the SERVER global array tells the script what software the physical server is using to serve up pages. Typically, on a Linux machine SERVER_SOFTWARE will be Apache (not always, but usually). On Windows machines, the typical SERVER_SOFTWARE is IIS or Windows Server.

Is this making more sense?
Post Reply