PHP with old browsers

She has: 6 posts

Joined: Jul 2005

I have now starting to get to grips with PHP, but one thing I have thought, what if a viewer of a newly created PHP website has a really old browser (more than 5 years old), can they still view it as it comes to them as HTML code?

Would I need to put in code to detect how old the browser in? Persumably this applies to any Server-side code (ASP, etc)?

Any thoughts? Smiling

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

Nope. server side code is just that, server side. it never gets to the browser.

They have: 222 posts

Joined: Sep 1999

All the PHP is rendered on the server and then the results are sent to the user's browser, so the user sees it exactly the same as they would if it were just regular HTML.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

You might want to try focusing on getting the HTML and CSS looking right on older browsers.

Like already mentioned, PHP is a server side language, browser doesn't really matter.

She has: 6 posts

Joined: Jul 2005

What effect does xhtml have on older browsers? How can you test on older browsers? Smiling

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

XHTML would have minimal effect on older browsers, it's basically HTML just more strict.

To test, you'd probably have to find someone with the browser and view it in there, download/install the program(s) yourself and view it there or, alternatively, you would find one of those sites that offer that is a service.

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

Browser Archive at Evolt.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.