Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 20th, 2004, 08:10 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default 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
Reply With Quote
  #2 (permalink)  
Old October 20th, 2004, 08:47 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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 ;)
Reply With Quote
  #3 (permalink)  
Old October 20th, 2004, 09:04 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

: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
Reply With Quote
  #4 (permalink)  
Old October 21st, 2004, 03:37 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
Reply With Quote
  #5 (permalink)  
Old October 21st, 2004, 10:06 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

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
Reply With Quote
  #6 (permalink)  
Old October 22nd, 2004, 04:35 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
Reply With Quote
  #7 (permalink)  
Old October 27th, 2004, 08:08 AM
Authorized User
 
Join Date: Oct 2004
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 :-(

&lt;&gt;_&lt;&gt;
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Developing C# corba compliant application umair.hasan .NET Framework 1.x 0 September 26th, 2006 12:32 AM
XHTML in .php Files dimo414 Beginning PHP 4 February 27th, 2006 05:44 AM
XHTML & middle aligning web page madhukp HTML Code Clinic 3 December 2nd, 2005 02:13 AM
Rollover prob when Flash inserted in XHTML page socoolbrewster HTML Code Clinic 0 September 12th, 2004 12:54 PM



All times are GMT -4. The time now is 02:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.