Cern Meta tags
Brought to you by:
canajun2eh,
yalnifj
It seems I'm, perhaps we all, are unable to add meta tags using apache2's meta modulu because they are redefined by either this application or PHP.
In case you don't know what I mean, you can read about it here:
http://httpd.apache.org/docs/2.2/mod/mod_cern_meta.html
In short its the ability to add meta tags to any content served by the webserver by using external files.
So....comming to my request finaly:
It would be "a good thing(TM)" to have the ability to add custom meta tags to the header outputs of PhpGedView via its configuration.
fe.: To add the verify meta tag from Google's Webmaster tools to verify your website.
Ofcourse there are _plenty_ of other uses that need these things :)
Logged In: YES
user_id=1466942
Originator: NO
OK - I read the link and I'm still none the wiser.
Can you explain again. Maybe give a concrete example?
Logged In: YES
user_id=1633201
Originator: YES
Sure i will try :)
The following asumes you are using FireFox with FireBug-plugin. (see: https://addons.mozilla.org/firefox/1843/\)
If you dont have FireBug, either install it or use other means to view header info returned by webservers for webpages.
Open these URL's in new tabs:
1 - http://phpgedview.trimoon.dyndns.org/index.html
2 - http://phpgedview.trimoon.dyndns.org/
To view header info open FireBug by rightclicking its icon and enabling it for the website.
- Click on the "NET" tab thats listed as 2nd row in the window that opens.
- Click the "+" on the pagename, in our example(s) it will be the 1st one starting with "index"
- You now see 2 new tabs called "Headers" and "Response", we will be looking at the output of "Headers".
For (1) we will be seeing the below, with slight differences in date/time as they are dynamic each request.
Response Headers:
Date: Mon, 10 Mar 2008 17:57:58 GMT
Server: Apache/2.2.4 (Ubuntu)
tbg: test
verify-v1: wvCP1mcoqahQ0ZXySXgmJ3thCuiXsGg5m8cCXHQMtzA=
Last-Modified: Thu, 06 Mar 2008 07:57:44 GMT
Etag: "19d27e-e3-447c017b6ee00"
Accept-Ranges: bytes
Content-Length: 227
Cache-Control: max-age=2210385
Expires: Sat, 05 Apr 2008 07:57:44 GMT
Content-Type: text/html
X-Pad: avoid browser bug
For (2) we will be seeing the below, with slight differences in date/time as they are dynamic each request.
Response Headers:
Date: Mon, 10 Mar 2008 18:06:48 GMT
Server: Apache/2.2.4 (Ubuntu)
X-Powered-By: PHP/5.2.3-1ubuntu6.3
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Encoding: gzip
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
When one uses the HTML tags <META ... /> inside a webpage some of those tags will be proccessed as if they appeared in the listing above.
I have setup both pages to use these setings from .meta files:
---------
tbg: test
verify-v1: "wvCP1mcoqahQ0ZXySXgmJ3thCuiXsGg5m8cCXHQMtzA="
---------
This means the server will output 2 extra meta tags when serving these pages.
The meta tags are resp. "tbg" and "verify-v1" with their contents.
As you can see in the output of (1) these tags are present, but are not in the output of (2)
As mentioned in my OP in this topic one can add all kind of meta tags this way.
What i'm asking for is the ability to place custom meta tags using a config entry that will be added in the HTML output of the generated pages as <META ... />
As mentioned im unceartain if the flaw/lack of these tags in output are caused by PHP or this application.
Hope this was helpfull enough to explain what i meant.
Logged In: YES
user_id=1466942
Originator: NO
For (1), I see the headers you are adding.
(2) doesn't load. Firefox just sits there "Loading..."
Logged In: YES
user_id=1633201
Originator: YES
Yes i don't know why this happens, but it seems tobe a bit slow in responding, access via lan seems normal though.
Just try a reload and it should load eventualy....
Logged In: YES
user_id=1466942
Originator: NO
It's still waiting....
It's acting like there's a firewall or router config error.
Logged In: YES
user_id=1633201
Originator: YES
I don't understand either sry.
I can access my webserver from the outside using onion networking (tor)...
Ok sometimes i also get a time-out but retrying with reload(s) eventualy gives me the pages...
Perhaps it's because im using PHP in CGI mode?
We have derailed from topic here but i like to solve both problems anyway :D
You sure the "index.html" way doesn't give same problems?
(In that case its something with my PHP setup)
Logged In: YES
user_id=1466942
Originator: NO
I don't understand what the problem is. I don't even know if it is a PGV problem.
Please try again to find a publicly accessible server that I can access.
Logged In: YES
user_id=1633201
Originator: YES
Well my server is public but seems like it has some accisibility problems ah-well...
Anyway to make a long story short:
What i like to see is the ability to add custom meta tags to the HEAD parts of the generated pages from PGV.
IMHO it's just a matter of a new array that holds 2 values per element:
1 - Meta-tag name
2 - Meta-tag value/contents
These should then just be spit out whn generating the HEAD sections of the generated XHTML like:
<meta name="(1)" content="(2)" />
One could even add an extra boolean kind of value to the array elements to indicate if the entry should be generated as name="(1)" or http-equiv="(1)"
I hope its clear now what im asking for :)
Logged In: YES
user_id=1466942
Originator: NO
<<it's just a matter of a new array that holds 2 values per element>>
Presumably you can already do this using a setting on your webserver.
I thought your problem was that PGV was somehow preventing you from doing this?
If not, why not just put in your .htaccess or wherever?
Logged In: YES
user_id=1633201
Originator: YES
Ok seems PHP in CGI mode has some quirks which prevented these meta tags to be generated from .meta files.
(I have uninstalled PHP5-CGI and re-installed PHP5 as an apache module.)
This eliminated the bug as OP'ed...
Now this can be moved to suggestions to improve PGV :)
(OOps we're already in suggestions)
Being able to add meta tags in the servers header response, does not make them visible inside the HTML though :)
So a way to add custom meta tags inside PGV as explained just below here would be "a good thing(TM)" to have for PGV.
As to the non-responsiveness of my server with PHP, this should now be eliminated also i hope.
If you revisit the main page url, http://phpgedview.trimoon.dyndns.org/ , the way i said you should see another tag "microid" by now which is also a nice thing to use :)
For microid see here: http://microid.org/
Logged In: YES
user_id=1633201
Originator: YES
See my patch 1923476 to aid you implement this.
http://sourceforge.net/tracker/index.php?func=detail&aid=1923476&group_id=55456&atid=477081