TFN Social
I'm looking at the home at I'm thinking
Board List | Topic List | Log In | Help
legend789 Posted: 1/10/2008 4:10:37 AM UTC | Message Detail | Filter | Author Profile | # 001
Level: 30
Legend
What's the point of using XHTML 1.1 if you have to use PHP to make it completely browser compatible?

XHTML 1.1 documents have to be declared as application/xhtml+xml (XHTML and XML app) or else they don't validate according to the W3C.

And XHTML doesn't even work 100% on (surprise) MSWIE and a few others, since it doesn't fully understand the XHTML and XML app mime-type.

So you have to use PHP to check if the browser accepts this app mime, and if it doesn't, echo up XHTML 1.0 strict, which just uses the older text/html mime-type which MSWIE understands. I'm not even 100% that it will validate once you put in that PHP anymore. It might but it would have to be a really smart validator.

Now here's the thing, PHP doesn't even work until you put it in the server, because it's a server-side scripting language, so you can't test it until it's too late and it's already on the web, even if you do use that little backup .htaccess file with "AddType text/html;charset=UTF-8 html" and everything else that you need (not mentioned because this topic is about html declarations) in the root directory of your website (which I'm fairly certain has a cascade effect and yields to the info in the actual html file).

I know I could just add it in, right before uploading the website, but that gets annoying.

I never even bothered to learn PHP because I can't use it without uploading a test webpage to see if it works, but I'm pretty sure that echo commands actually output the new stuff into your "html" file, but I'm not sure if the conditional HTTP header will make that nice <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> meta-tag which I really like to see in my code when I look at the source on FireFox, and if it doesn't, will it conflict if I add it? It'd probably not validate on anything but IE in that case if I put it in manually.

So I just stick to the old fashioned XHTML 1.0 Strict header with text/html content, even if good browsers like FireFox won't be able to use the web page to it's full capacity, just to avoid the headache and potential crappy browser. (HTML 4.0 is too old fashioned and not XML, and transitional quite frankly isn't much to be pround of.)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Ogordemir99 Posted: 1/10/2008 5:32:19 AM UTC | Message Detail | Filter | Author Profile | # 002
Level: 49
Liberal Arts Major
The home page, like so many other things, was written by ns, who decided to make it valid or something. My method of validating things is to use the <html> tag; I don't know anything about modern standards and I couldn't possibly imagine caring any less. If this has resulted in any decline in quality, I haven't noticed, possibly because everything I make is so low-quality already it's indistinguishable.

Now here's the thing, PHP doesn't even work until you put it in the server, because it's a server-side scripting language, so you can't test it until it's too late and it's already on the web...

This isn't true - PHP runs wherever you have the interpreter installed, so you can test it on your own computer.

even if you do use that little backup .htaccess file with "AddType text/html;charset=UTF-8 html" and everything else that you need (not mentioned because this topic is about html declarations) in the root directory of your website (which I'm fairly certain has a cascade effect and yields to the info in the actual html file).

I don't even know what you're talking about here.

but I'm pretty sure that echo commands actually output the new stuff into your "html" file, but I'm not sure if the conditional HTTP header will make that nice meta-tag which I really like to see in my code when I look at the source on FireFox, and if it doesn't, will it conflict if I add it? It'd probably not validate on anything but IE in that case if I put it in manually.

I don't have a header in SS worth diddly-squat and it has echoes aplenty. Judging from that and from the explicit header declaration in the rest of TFN, the content header is implicit in the browser's handling of the page and shouldn't conflict with any manually-declared header.
___
~ Ogordemir ~
"The sciences have hitherto harmed us little; but some day the piecing together of dissociated knowledge will open up such terrifying vistas of reality that we shall either go mad from the revelation or flee from the light into the peace and safety of a new dark age." ~ H.P Lovecraft, The Call of Cthulhu
Message last edited by Ogordemir99 on 1/10/2008 at 12:33:05 AM
legend789 Posted: 1/11/2008 12:45:07 AM UTC | Message Detail | Filter | Author Profile | # 003
Level: 30
Legend
The home page, like so many other things, was written by ns, who decided to make it valid or something. My method of validating things is to use the <html> tag; I don't know anything about modern standards and I couldn't possibly imagine caring any less. If this has resulted in any decline in quality, I haven't noticed, possibly because everything I make is so low-quality already it's indistinguishable.

...

This isn't true - PHP runs wherever you have the interpreter installed, so you can test it on your own computer.

...

I don't even know what you're talking about here.

...

I don't have a header in SS worth diddly-squat and it has echoes aplenty. Judging from that and from the explicit header declaration in the rest of TFN, the content header is implicit in the browser's handling of the page and shouldn't conflict with any manually-declared header.


It hasn't = P don't worry. I'm just worried about this stuff myself.

>_> I once tried installing an interpreter but it didn't work and I figured that it's probably more difficult than PHP itself. Do you have any that you can suggest in terms of an interpreter?

The htaccess file is really just a file that lists information about all the file-types that you use on the website. I know that it could be used to auto-header your webpages, stop image flickering, and possibly to keep spambots off your site, and other things.

Oh thanks for the info, Ogor. That's better than I thought, and actually manageable = ]
---
Now! This is it! Now is the time to choose! Die and be free of pain or live and fight your sorrow! Now is the time to shape your stories! Your fate is in your hands! - Auron (FFX)
Ogordemir99 Posted: 1/11/2008 2:26:43 AM UTC | Message Detail | Filter | Author Profile | # 004
Level: 49
Liberal Arts Major
>_> I once tried installing an interpreter but it didn't work and I figured that it's probably more difficult than PHP itself. Do you have any that you can suggest in terms of an interpreter?

To be honest I've never installed the interpreter myself; I've only used it in Linux. This might tell you how you can install everything so you can test scripts in a browser rather than just a command prompt - or it might suck, I haven't read through the whole thing.

The htaccess file is really just a file that lists information about all the file-types that you use on the website. I know that it could be used to auto-header your webpages, stop image flickering, and possibly to keep spambots off your site, and other things.

I'm no stranger to what an htaccess file is, of course; I just don't know anything about how to make it do all that, and in my experience almost everything htaccess-related can be pilfered off the Internet, so I haven't felt particularly compelled to learn it. Same with Javascript.

Oh thanks for the info, Ogor.

You're welcome, but don't forget the possibility that I'm wrong, as I often am. Though I'd never admit it.
___
~ Ogordemir ~
"The sciences have hitherto harmed us little; but some day the piecing together of dissociated knowledge will open up such terrifying vistas of reality that we shall either go mad from the revelation or flee from the light into the peace and safety of a new dark age." ~ H.P Lovecraft, The Call of Cthulhu
legend789 Posted: 1/11/2008 4:07:52 AM UTC | Message Detail | Filter | Author Profile | # 005
Level: 30
Legend
To be honest I've never installed the interpreter myself; I've only used it in Linux. <a href="http://www.devarticles.com/c/a/Apache/Installing-PHP-under-Windows/">This</a> might tell you how you can install everything so you can test scripts in a browser rather than just a command prompt - or it might suck, I haven't read through the whole thing.

Thanks I'll check it out tomorrow = D

I'm no stranger to what an htaccess file is, of course; I just don't know anything about how to make it do all that, and in my experience almost everything htaccess-related can be pilfered off the Internet, so I haven't felt particularly compelled to learn it. Same with Javascript.

Oh yeah that's true o.o

You're welcome, but don't forget the possibility that I'm wrong, as I often am. Though I'd never admit it.

I guess, but I trust you = P
---
Now! This is it! Now is the time to choose! Die and be free of pain or live and fight your sorrow! Now is the time to shape your stories! Your fate is in your hands! - Auron (FFX)
Ogordemir99 Posted: 1/11/2008 4:36:12 AM UTC | Message Detail | Filter | Author Profile | # 006
Level: 49
Liberal Arts Major
but I trust you

You're not the first to make that mistake!
___
~ Ogordemir ~
"The sciences have hitherto harmed us little; but some day the piecing together of dissociated knowledge will open up such terrifying vistas of reality that we shall either go mad from the revelation or flee from the light into the peace and safety of a new dark age." ~ H.P Lovecraft, The Call of Cthulhu
legend789 Posted: 1/11/2008 11:34:50 PM UTC | Message Detail | Filter | Author Profile | # 007
Level: 30
Legend
You're a charismatic leader, but you don't sound like a Nazi, and this doesn't look like a cult >.>
---
Now! This is it! Now is the time to choose! Die and be free of pain or live and fight your sorrow! Now is the time to shape your stories! Your fate is in your hands! - Auron (FFX)
There are no users currently viewing this topic.
Board List | Topic List

  Original script created by ultimategamer00, © 2002-2014.
Script processed in 0.003704 seconds.
anotherFyre source modified by ns1987 & Ogordemir99.