butteryak Posted June 28, 2008 Share Posted June 28, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/112285-no-dns-cache/ Share on other sites More sharing options...
.josh Posted June 28, 2008 Share Posted June 28, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/112285-no-dns-cache/#findComment-576486 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.