Jump to content

Recommended Posts

Hey there,

  I'm very unfamiliar with php, I do have some HTML experience.  What I'm looking to do is add something to a php page that will keep the browser from caching the DNS information.  on an HTML page I would put some meta info in the head, somthing like this:

 

<html>

 

<head>

<META HTTP-EQUIV="expires" CONTENT="-1">

<META HTTP-EQUIV="pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Cache-Control" CONTENT="no-store">

<META HTTP-EQUIV="Content-Language" content="en-us">

<title>WELCOME</title>

</head>

 

not sure if or how this is possible with PHP

 

 

thanks for the tips and point in the right direction

 

butteryak

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/112285-no-dns-cache/
Share on other sites

php is a server side language. It parses everything into the final text and spits it out to the client.  It doesn't really have anything to do with the client (your browser).  You would use that html just the same.

 

How you add it to your php file depends on what kind of code is in there.  But generally you can just add that as plain text before your starting <?php tag, as the first piece of text to be sent to the client.

Link to comment
https://forums.phpfreaks.com/topic/112285-no-dns-cache/#findComment-576486
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.