PHP Code space not showing in IE7 but in GC?

Hi there,

I have this PHP code:

[php][/php]

For some reason, after the and before the <?php... ?> a space won’t show up in IE7 but it does in GC! I want to avoid putting the code ’ '.

Is it possible to add a space without the code ’ '?

Thanks,

William

[php]<?php echo ' '; langtrans('seconds ago'); ?>[/php]

Thanks very much, fastsol! Now, I’ll know how to print a space with PHP in future! :smiley:

Hi there,

Sorry, it’s not completely right.

Even though the space does show in IE7, it does not show in IE9 Compatibility View.

How do I change the code again?

Thanks,

William

There are many things that don’t work in compatibility view with IE of any version, I honestly wouldn’t worry about it.

Ah right ok, ok I won’t but is there code to make the space display in compatibility view and why call it ‘compatibility view’ when hardly anything displays properly?

Sponsor our Newsletter | Privacy Policy | Terms of Service