 |
| Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

October 20th, 2004, 08:10 PM
|
|
Friend of Wrox
|
|
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
XHTML Compliant PHP page
Hi all,
I know this may seem a little odd since I don't do anything with PHP but...........My question is this: Is there any way to code a PHP page so that it displays uniformly across all browsers?
Some Flash Kit members have had problems with the Flash Kit site not rendering properly in FireFox. I even checked the page source on the forums and I found out that they don't even use XHTML
Thanks in advance
Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.
Welcome to the New Age
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes. I\'m confident I have.
Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator
Welcome to the New Age
|
|

October 20th, 2004, 08:47 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
PHP is a background language. It doesn't display anything at all. XHTML is markup code, for displaying. It all depends on how you output your markup. If it's XHTML, then it's XHTML. If it's not, then it's not.
So basically, PHP has just about nothing to do with it.
And there are some XHTML pages that will not display the same in all browsers, usually due to lack of CSS/standards support (guess which browser I'm talking about?).
HTH
-Snib <><
Try new FreshView 0.2!
There are only two stupid questions: the one you don't ask, and the one you ask more than once ;)
|
|

October 20th, 2004, 09:04 PM
|
|
Friend of Wrox
|
|
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
:DI know what you're talking about. It's Internet Explorer. Really, I guess that even some websites don't display very well in FireFox either.
Get this, though. Flash Kit is adhering to the HTML 4.01 Transitional. Dang hippies:D
Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.
Welcome to the New Age
|
|

October 21st, 2004, 03:37 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
The only reason a website will display badly in Firefox or another standards-compliant browser is because people code for IE because people use IE. If people would stop coding for IE, people would stop using IE, and coders' lives would be so much easier because they don't have to hack to make their websites work!
So, I've stopped coding for IE and hacking for other browsers, and instead code standards-compliant and hack for IE (hopefully someday I won't have to :-) ).
BTW, FlashKit's code isn't valid anything.... it's just a hopeless mess of text that satisfies IE, mostly because of vBulletin's lack of support for standards. 317 errors! Does no one care about standards anymore?
I guess I'll stop rambling now.. :-)
Cheers,
-Snib Where will you be in 100 years?
Try new FreshView 0.2!
There are only two stupid questions: the one you can't find the answer to and don't ask, and the one that you can find the answer and do ask.
|
|

October 21st, 2004, 10:06 PM
|
|
Friend of Wrox
|
|
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Snib,
I hate to disagree with you since you obviously know a lot about Web design but I have to respectfully do so.:)
I have a pretty strong background designing web pages and let me say this: If your web page doesn't diplay nicely, people are going to stop coming to it. They won't stop using IE because people stop coding for that browser. So really, in the end, it's the designer who's to blame. Not the browser.
Quote:
|
quote:Posted by yasunobu13 at Flash Kit's Coffee Lounge:
|
Quote:
|
People won't stop using IE because of this, they'll stop visiting your web page because it doesn't display nicely, and the designer is the one who will be blamed, not the browser. Regular internet users have no idea what html is other than an extension, and even fewer know that there are standards.
|
As yasunobu13 said (and very well BTW), It's IE that needs the most hacks. Sure, there will be differences in how a web page displays on Mozilla for Mac and for PC but those are minor. The display differences in IE 5 on Mac/PC and in IE 6 are huge
Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.
Welcome to the New Age
|
|

October 22nd, 2004, 04:35 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Ben,
I do agree with you, but I confused myself in my thread, what I meant to say is that if people stop using IE, people won't have to code for IE. Sorry for the misunderstanding.
Yes, yasunobu13 is right, IE needs the hacks. Does 2 + 2 = 5, except for standards-compliant browsers, or does 2 + 2 = 4, except for IE? :-)
-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
There are only two stupid questions: the one you can't find the answer to and don't ask, and the one that you can find the answer and do ask.
|
|

October 27th, 2004, 08:08 AM
|
|
Authorized User
|
|
Join Date: Oct 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Let's just hope that Microshiz starts coding IE so that it corresponds with web standards. If they don't screw them. No one need's them anyway.
**THis is says as he uses IE. What a shame :-(
<>_<>
|
|
 |