473,322 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Meta Tags

Hello.

I was read PHP manual, but i'm not sure yet. Here is my meta tags in html:

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2">
<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store, no-cache,
must-revalidate, max-age=0, post-check=0, pre-check=0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META NAME="title" CONTENT="test">
<META NAME="description" CONTENT="Test description.">
<META NAME="keywords" CONTENT="a b c">
<META NAME="robots" CONTENT="All">
<META NAME="copyright" CONTENT="x y z ">
<META NAME="author" content="x y z">

and here is in PHP:

// META TAGS CONFIGURATION
// Cache deactivate
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always
modified

// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");

header("Content-Type: text/html;charset=ISO-8859-2">;
header("Title: test");
header("Content-Description: Test description.");
header("Keywords: a b c");
header("Robots: All");
header("Copyright: xyz");
header("Author: xyz");

Is PHP code correct?
Any suggestions appreciated.

Greets,
Cezary.
Jul 17 '05 #1
1 3978
"Cezary" <ce*****@imail.net.pl> wrote in message news:<c7**********@nemesis.news.tpi.pl>...
Hello.

I was read PHP manual, but i'm not sure yet. Here is my meta tags in html:

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2">
<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store, no-cache,
must-revalidate, max-age=0, post-check=0, pre-check=0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
AFAIK, the above Meta tags are kind of fix or HTML workaround for
the headers.

<META NAME="title" CONTENT="test">
<META NAME="description" CONTENT="Test description.">
<META NAME="keywords" CONTENT="a b c">
<META NAME="robots" CONTENT="All">
<META NAME="copyright" CONTENT="x y z ">
<META NAME="author" content="x y z">
And the above Meta tags and attributes are pure HTML.
and here is in PHP:

// META TAGS CONFIGURATION
// Cache deactivate
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always
modified

// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");

header("Content-Type: text/html;charset=ISO-8859-2">;
All above are AFAIK, Ok.
header("Title: test");
header("Content-Description: Test description.");
header("Keywords: a b c");
header("Robots: All");
header("Copyright: xyz");
header("Author: xyz");


Hmmm... AFAIK, no. These are not headers and can be called as
user-defined headers. But, I guess, there is no effect of these
headers. Also, think, if such user-defined headers are present, it
must be prefixed with "X" like header("X-Author: xyz").

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Brian | last post by:
Hi, I'm trying to use standard meta tags in an xsl doc and using cocoon as my processor. The problem is that cocoon changes for example: <meta name="keywords" content="test, test, test" /> ...
1
by: Darren Blackley | last post by:
Hi there I have documents that I want to automatically add additional meta tags to. The documents already have some meta tags and I want to keep them all together, so I want to add my new meta tags...
19
by: Christian Hvid | last post by:
Hello groups. I have a series of applet computer games on my homepage: http://vredungmand.dk/games/erik-spillet/index.html http://vredungmand.dk/games/nohats/index.html...
24
by: Day Bird Loft | last post by:
Web Authoring | Meta-Tags The first thing to understand in regard to Meta Tags is the three most important tags placed in the head of your html documents. They are the title, description, and...
23
by: Fast Eddie | last post by:
What's the benefit to coding <meta name="author"...> and such? Thanks.
4
by: clintonG | last post by:
Anybody know how to dynamically write the meta tags using code so they are formatted on a separate line in the HTML source? Preferred or optimal framework classes that may be used in this regard? ...
16
by: Edward | last post by:
Hi All, I am having huge problems with a very simple dotnet framework web page (www.gbab.net/ztest3.aspx) , it does NOT render correctly under Apple's Safari. The DIV's do not align amd float as...
3
by: Jordan S. | last post by:
I'm looking to localize an ASP.NET Web application for English, Spanish, and French (fr-CA), and was just considering the possibility of localizing the meta tags (e.g., keywords, title, and...
4
by: King Coffee | last post by:
Hi, If I use master pages with META tags in the head section... can I still use META tag on the child pages (child pages reference the master page). I ask this question because I heard the more...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.