Oh, btw, the data is extracted from a MySQL database.
How do you see that affecting the problem?


-----Original Message-----
From: Miles Thompson [mailto:[EMAIL PROTECTED]]
Sent: 04 January 2002 01:30
Subject: Re: [PHP] Problem with Printer-friendly script

It's reasonably fast in Internet Explorer, and didn't complete in Netscape

The characters I saw were similar to yours, except that I saw fd0 (the
floppy!?) instead of fd6.
Could they be artifacts in the data stream?

Does the initial page,
www.ski-info-online.com/skiResort-print1.php?id=Alpbach fetch data from a
database? from a flat file?

What happens if you fetch the default length of 1k?

Miles  Thompson

At 12:30 AM 1/4/2002 +0000, ski-info wrote:
>I am in the process of producing a script which will allow me to produce
>printer-friendly versions of my dynamically produced web pages.
>For the most part it is working but take a look here...
>If you click the "Print Review" button it all seems to work fine, except
>1) it's slow and...
>2) do you see those numbers c3 fd6 and 52 59c (may take a few seconds)?
>Where on Earth did they come from?  They are not in the html (as you would
>also see them on the main review page). They also appear to be the cause of
>script running slow.
>Here is my php code.
>header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
>header("Last-Modifieed: ". gmdate("D, d M Y H:i:s"). " GMT");
>header("Cache-Control: no-cache, must-revalidate");
>header("Cache-Control: post-check=0,pre-check=0");
>header("Cache-Control: max-age=0");
>header("Pragma: no-cache");
>     $myURL = $HTTP_REFERER;
>} else {
>     $myURL = "http://www.ski-info-online.com/";;
>$END_CONT = "<!-- CONTENT ENDS -->";
>$parsed_url = parse_url($myURL);
>$myServer = $parsed_url['host'];
>$document = $parsed_url['path'];
>$query = $parsed_url['query'];
>     $document = "$document/index.php";
>     $base_url = dirname($document);
>$request = "GET $document"."?"."$query"." HTTP/1.1\r\n";
>$request .= "Host: $myServer\r\n\r\n";
>if(!$fp) {
>   echo "$errstr ($errno)<br>\n";
>} else {
>   fputs($fp,$request);
>   $content=0;
>   $in_title=0;
><? while(!feof($fp)) { $line=fgets($fp,4096); if(ereg($START_CONT,$line))
>{ $content=1; } if(ereg($END_CONT,$line)) $content=0; if($content==1)echo
>$line; } fclose($fp); ?>
>Copyright  Ski-Info-Online.com. All rights reserved.
><?echo "$myURL\n";?>
>Any help greatly appreciated.
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to