1 (edited by monishakt 2006-06-19 12:29)

Topic: extern.php showing junk characters in output

Hi

I am using punbb forum at mydomain.com/forums/

The main page of the site is mydomain.com/index.html

I am trying to include the meggages from a particlar forum at this page using


<!--#include virtual="/forums/extern.php?action=new&show=3&fid=17"-->

This is how my server supports includes in .html pages and they work perfectly fine.

Now the problem is I am able to see perfect output on few of the computers but some computers (all are windows with IE) show output as junk characters. It seems that IE in few PC's is not able to decode the output properly.

What could be causing this... Is there a solution to this problem.

When I try to run <?php include('http://www.mydomain.com/forums/extern.php?action=new&show=3&fid=17'); ?>
in a php script it gives perfect results

Re: extern.php showing junk characters in output

No response in past 12 hrs. Should I assume that no body has the slightest clue of the problem

Re: extern.php showing junk characters in output

Link?

Re: extern.php showing junk characters in output

These are the sample pages

http://www.sukhdukh.com/homepage.html

This page uses virtual include and shows junk characters (only on few computers I am not sure if it will show junk characters on your pc)

<!--#include virtual="/forums/extern.php?action=new&show=3&fid=17"-->


while this php page uses php include and works fine

http://www.sukhdukh.com/homepage.php

Kindly let me know if you need and more details...

5 (edited by Smartys 2006-06-20 17:46)

Re: extern.php showing junk characters in output

I have absolutely no clue what's happening there: ask your host

Edit: Aha, wait, I do know

Content-Encoding: gzip

The PHP output is gzipped and the rest of the page is not.

6 (edited by monishakt 2006-06-20 17:53)

Re: extern.php showing junk characters in output

I did not get the point.... the gzip output is disabled

do i have to enable it...

How do I correct this problem

7 (edited by Smartys 2006-06-20 17:57)

Re: extern.php showing junk characters in output

Talk to your host, ask them

Gzip compression allows the data sent by a page to be much smaller and to be decompressed when it reaches the user, speeding up page loading. The issue here is that you're including a gzipped page onto your HTML without decompressing the data

Edit: Meh, it's actually a similar issue

extern.php is gzipped (by your server, I assume)
homepage.html is gzipped (by your server, I assume)

Thus, the data from extern.php gets a double gzip.

This doesn't happen with the PHP because the PHP doesn't load the page through the server

Re: extern.php showing junk characters in output

In Punbb  iI have already disabled the gzip output, so it is not double gzip. Also I am able to see this page perfectly in some of the PC's. What could be the reason for this. I am assuming that you are also seeing junk characters

Re: extern.php showing junk characters in output

I'm not exactly sure what the problem is now: I seem to remember homepage.html coming out listed as gzipped, but now it isn't

Talk to your host. extern.php IS being gzipped, as are all PHP pages. If that is the issue, then they have to deal with it

Re: extern.php showing junk characters in output

How can I ensure that the output of extern.php is not gzipped. I have already disabled the gzipped option in Adminstration> Options settings

Re: extern.php showing junk characters in output

Talk. To. Your. Host.