Shoe
Shoe

Reputation: 76240

PHP working different if the browser is Safari or Chrome

I'm facing a problem I didn't even thought could ever happen. Basically the PHP script of the page run some login thing and then decide in a table whatever a <td> must or mustn't have specific classes. Now if I run the script, the PHP run badly returning no class when a <td> must have that class. On Chrome instead the class is there as it should. I tried to close both the browsers and then reload the page multiple times, but it seems that in Chrome and Safari the PHP script behave differently, how could it be possible?

What should I look at when happens such a thing?

PS

I'm not posting the PHP script in first instance because it is a very fragmentary script and gaining the entire script here would means thousands of line of code (notice that only the calendar script is 100+ lines). Also I think it's not a script related problem.

Upvotes: 0

Views: 1016

Answers (1)

Marek Karbarz
Marek Karbarz

Reputation: 29304

By the time the browser gets your page the PHP has been executed, so there can't be any difference in how different browser "handle" PHP (because they simply don't). You could have other problems, maybe malformed HTML (forgotten quote, misplaced tags etc.), so posting some of that PHP code would be the only way to tell.

Upvotes: 8

Related Questions