Log in

View Full Version : Object not shown in IE 8 but in FF



admod
06-19-2012, 07:47 AM
Hi pals ,
I come with a strange case , in a case when I print_r one array I got in FireFox(FF) :


Array ( [1] => __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => Subcategory [itemsubcategory94_id] => 14 [itemcategory925_id] => 13 [itemsubcategory94_name] => Floor pipe Flop [itemsubcategory94_discription] => asasA AS as as ASAsASASAsas anes hi [itemsubcategory94_status] => 1 [itemcategory925_name] => LDPE Pipes [itemsubcategory94_image] => SG34501114.jpg ) [2] => __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => Subcategory [itemsubcategory94_id] => 12 [itemcategory925_id] => 14 [itemsubcategory94_name] => LMT Garden Hose [itemsubcategory94_discription] => It's a good quality one product. [itemsubcategory94_status] => 0 [itemcategory925_name] => Garden Hose [itemsubcategory94_image] => SG.jpg ) )

But in IE 8 i don't get any output, How it can resolve . Reply me ASAP

Thanks
Anes:eek:

jscheuer1
06-19-2012, 02:24 PM
PHP is the same in all browsers.


That object will not show anything in any browser without some later code that uses it to echo or print something to the page. It's often the validity or lack thereof of that presentation that's at issue in any browser differences.


Alternatively, if that object is getting some of its information from an earlier page that posts or gets via user input to the page it's on, the code for that might not be working properly in some browsers.


It could be either or both. In most cases it's the first one.

What does this code do when it works?

djr33
06-19-2012, 09:51 PM
PHP operates only on the server. The same code is sent to all browsers (HTML, CSS, JS), generated by the PHP. PHP absolutely cannot, as John said, be different in different browsers.
But of course the content that PHP generates can display differently in different browsers. Or it could even get different input from different browsers.