FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Print preview in php
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Print preview in php [message #174226] Fri, 27 May 2011 21:48 Go to next message
Co is currently offline  Co
Messages: 75
Registered: May 2011
Karma: 0
Member
Hi All,

I was wondering if someone can help me with a code to preview part of
a php page
and eventually print it.
I don't want to print all of the page with images etc, just the data
within a certain area of the page.

Anyone know if this is possible?

Regards
Marco
Re: Print preview in php [message #174227 is a reply to message #174226] Sat, 28 May 2011 00:33 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Co wrote:
> Hi All,
>
> I was wondering if someone can help me with a code to preview part of
> a php page
> and eventually print it.
> I don't want to print all of the page with images etc, just the data
> within a certain area of the page.
>
> Anyone know if this is possible?
>

sort of.

The first question to ask, is how are you printing it?

rendered HTML is notoriously crap at being printed, since fonts and so
on can not be guaranteed at the clients browser end.

I got round that by generating pdf files which are then downloaded and
printed, with fonts embedded, but its a whole new bunch of programming.

If you just want to do a quick and dirty preview, either write a PHP
page than can be selected to just show that, or possibly make a
javascript window that pops up and includes it..

But whatever you do its a separate piece of code...there are no short
cuts that I know of.


> Regards
> Marco
Re: Print preview in php [message #174228 is a reply to message #174226] Sat, 28 May 2011 01:24 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/27/2011 5:48 PM, Co wrote:
> Hi All,
>
> I was wondering if someone can help me with a code to preview part of
> a php page
> and eventually print it.
> I don't want to print all of the page with images etc, just the data
> within a certain area of the page.
>
> Anyone know if this is possible?
>
> Regards
> Marco

From a web page? Not possible. PHP runs on the server and has nothing
to do with page layout (that's HTML/CSS). Print preview runs on the
client and is dependent on client settings, of which PHP has no knowledge.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Print preview in php [message #174230 is a reply to message #174228] Sat, 28 May 2011 02:46 Go to previous messageGo to next message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma: 0
Member
At Fri, 27 May 2011 21:24:36 -0400 Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:

>
> On 5/27/2011 5:48 PM, Co wrote:
>> Hi All,
>>
>> I was wondering if someone can help me with a code to preview part of
>> a php page
>> and eventually print it.
>> I don't want to print all of the page with images etc, just the data
>> within a certain area of the page.
>>
>> Anyone know if this is possible?
>>
>> Regards
>> Marco
>
> From a web page? Not possible. PHP runs on the server and has nothing
> to do with page layout (that's HTML/CSS). Print preview runs on the
> client and is dependent on client settings, of which PHP has no knowledge.

OTOH, if the web page in question is being served by the PHP code, all
you need to do is create a link, something like this:

<a href="/ServeThePrinterFriendlyPage.php?..." target="_blank"
onclick=" window.open(this.href,'win2','status=no,toolbar=no,scrollbars=yes,titlebar= no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no ');
return false;" rel="nofollow">Print This</a>

And then the ServeThePrinterFriendlyPage.php file would then serve the
page without the special effects that make sense on the screen (eg
images, flash, ads, etc.) but don't on the printer. The
target="_blank" attribute handles the case where JavaScript is not
available and the onclick attribute handles the case where JavaScript
is available. On the page served, you need to include a link like:

<a href="#" onclick="window.print();return false;">Print</a> and
optionally one like <a href="#" onclick="window.close();return
false;">Close</a>. The first is a button to print the page and the
second is a button to close the popup window.

>

--
Robert Heller -- 978-544-6933 / heller(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
Re: Print preview in php [message #174233 is a reply to message #174230] Sat, 28 May 2011 09:05 Go to previous messageGo to next message
Co is currently offline  Co
Messages: 75
Registered: May 2011
Karma: 0
Member
On 28 mei, 04:46, Robert Heller <hel...@deepsoft.com> wrote:
> At Fri, 27 May 2011 21:24:36 -0400 Jerry Stuckle <jstuck...@attglobal.net> wrote:
>
>
>
>
>
>
>
>
>
>
>
>> On 5/27/2011 5:48 PM, Co wrote:
>>> Hi All,
>
>>> I was wondering if someone can help me with a code to preview part of
>>> a php page
>>> and eventually print it.
>>> I don't want to print all of the page with images etc, just the data
>>> within a certain area of the page.
>
>>> Anyone know if this is possible?
>
>>> Regards
>>> Marco
>
>>  From a web page?  Not possible.  PHP runs on the server and has nothing
>> to do with page layout (that's HTML/CSS).  Print preview runs on the
>> client and is dependent on client settings, of which PHP has no knowledge.
>
> OTOH, if the web page in question is being served by the PHP code, all
> you need to do is create a link, something like this:
>
> <a href="/ServeThePrinterFriendlyPage.php?..." target="_blank"
> onclick=" window.open(this.href,'win2','status=no,toolbar=no,scrollbars=yes,titlebar= no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no ');
> return false;" rel="nofollow">Print This</a>
>
> And then the ServeThePrinterFriendlyPage.php file would then serve the
> page without the special effects that make sense on the screen (eg
> images, flash, ads, etc.) but don't on the printer.  The
> target="_blank" attribute handles the case where JavaScript is not
> available and the onclick attribute handles the case where JavaScript
> is available.  On the page served, you need to include a link like:
>
> <a href="#" onclick="window.print();return false;">Print</a> and
> optionally one like <a href="#" onclick="window.close();return
> false;">Close</a>. The first is a button to print the page and the
> second is a button to close the popup window.
>
>
>
> --
> Robert Heller             -- 978-544-6933 / hel...@deepsoft.com
> Deepwoods Software        --http://www.deepsoft.com/
> ()  ascii ribbon campaign -- against html e-mail
> /\  www.asciiribbon.org  -- against proprietary attachments

what should there be in the ServeThePrinterFriendlyPage.php?
Is that the same as in the normal page but without images etc?

Marco
Re: Print preview in php [message #174239 is a reply to message #174230] Sat, 28 May 2011 11:33 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
Robert Heller wrote:

> Jerry Stuckle wrote:
>> On 5/27/2011 5:48 PM, Co wrote:
>>> I was wondering if someone can help me with a code to preview part of
>>> a php page
>>> and eventually print it.
>>> I don't want to print all of the page with images etc, just the data
>>> within a certain area of the page.
>>>
>>> Anyone know if this is possible?
>>
>> From a web page? Not possible. PHP runs on the server and has nothing
>> to do with page layout (that's HTML/CSS). Print preview runs on the
>> client and is dependent on client settings, of which PHP has no
>> knowledge.
>
> OTOH, if the web page in question is being served by the PHP code, all
> you need to do is create a link, something like this:
>
> <a href="/ServeThePrinterFriendlyPage.php?..." target="_blank"
> onclick="window.open(this.href,'win2','status=no,toolbar=no,[…]');
> return false;"

You really want to avoid such spaghetti code.

> rel="nofollow">Print This</a>
>
> And then the ServeThePrinterFriendlyPage.php file would then serve the
> page without the special effects that make sense on the screen (eg
> images, flash, ads, etc.) but don't on the printer. [complicated
> regeneration of the current resource, probably with lots of hardly
> maintainable ifs in-between]

Or you could much more simply define a stylesheet for print media that does
the necessary adjustments:

<link rel="stylesheet" media="print" href="print.css">


PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(at)news(dot)demon(dot)co(dot)uk>
Re: Print preview in php [message #174242 is a reply to message #174239] Sat, 28 May 2011 12:04 Go to previous messageGo to next message
Co is currently offline  Co
Messages: 75
Registered: May 2011
Karma: 0
Member
On 28 mei, 13:33, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
> Robert Heller wrote:
>> Jerry Stuckle wrote:
>>> On 5/27/2011 5:48 PM, Co wrote:
>>>> I was wondering if someone can help me with a code to preview part of
>>>> a php page
>>>> and eventually print it.
>>>> I don't want to print all of the page with images etc, just the data
>>>> within a certain area of the page.
>
>>>> Anyone know if this is possible?
>
>>> From a web page?  Not possible.  PHP runs on the server and has nothing
>>> to do with page layout (that's HTML/CSS).  Print preview runs on the
>>> client and is dependent on client settings, of which PHP has no
>>> knowledge.
>
>> OTOH, if the web page in question is being served by the PHP code, all
>> you need to do is create a link, something like this:
>
>> <a href="/ServeThePrinterFriendlyPage.php?..." target="_blank"
>> onclick="window.open(this.href,'win2','status=no,toolbar=no,[…]');
>> return false;"
>
> You really want to avoid such spaghetti code.
>
>> rel="nofollow">Print This</a>
>
>> And then the ServeThePrinterFriendlyPage.php file would then serve the
>> page without the special effects that make sense on the screen (eg
>> images, flash, ads, etc.) but don't on the printer.  [complicated
>> regeneration of the current resource, probably with lots of hardly
>> maintainable ifs in-between]
>
> Or you could much more simply define a stylesheet for print media that does
> the necessary adjustments:
>
>   <link rel="stylesheet" media="print" href="print.css">
>
> PointedEars
> --
> Prototype.js was written by people who don't know javascript for people
> who don't know javascript. People who don't know javascript are not
> the best source of advice on designing systems that use javascript.
>   -- Richard Cornford, cljs, <f806at$ail$1$8300d...@news.demon.co.uk>

I found an example doing that but I still printed the whole page.

Marco
Re: Print preview in php [message #174245 is a reply to message #174242] Sat, 28 May 2011 12:22 Go to previous messageGo to next message
TK is currently offline  TK
Messages: 6
Registered: May 2011
Karma: 0
Junior Member
On 5/28/2011 7:04 AM, Co wrote:
> On 28 mei, 13:33, Thomas 'PointedEars' Lahn<PointedE...@web.de>
> wrote:

>>
>> Or you could much more simply define a stylesheet for print media that does
>> the necessary adjustments:
>>
>> <link rel="stylesheet" media="print" href="print.css">
>>
>> PointedEars
>> --
>> Prototype.js was written by people who don't know javascript for people
>> who don't know javascript. People who don't know javascript are not
>> the best source of advice on designing systems that use javascript.
>> -- Richard Cornford, cljs,<f806at$ail$1$8300d...@news.demon.co.uk>
>
> I found an example doing that but I still printed the whole page.

Make the items you do not want to display have a class="nodisplay"

In the print css sheet define .nodisplay {display:none;}

--
TK ~ aka Terry Kimpling
http://wejuggle2.com/
If you can be legally insane, can you not be illegally insane?
Re: Print preview in php [message #174251 is a reply to message #174230] Sat, 28 May 2011 13:06 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/27/2011 10:46 PM, Robert Heller wrote:
> At Fri, 27 May 2011 21:24:36 -0400 Jerry Stuckle<jstucklex(at)attglobal(dot)net> wrote:
>
>>
>> On 5/27/2011 5:48 PM, Co wrote:
>>> Hi All,
>>>
>>> I was wondering if someone can help me with a code to preview part of
>>> a php page
>>> and eventually print it.
>>> I don't want to print all of the page with images etc, just the data
>>> within a certain area of the page.
>>>
>>> Anyone know if this is possible?
>>>
>>> Regards
>>> Marco
>>
>> From a web page? Not possible. PHP runs on the server and has nothing
>> to do with page layout (that's HTML/CSS). Print preview runs on the
>> client and is dependent on client settings, of which PHP has no knowledge.
>
> OTOH, if the web page in question is being served by the PHP code, all
> you need to do is create a link, something like this:
>
> <a href="/ServeThePrinterFriendlyPage.php?..." target="_blank"
> onclick=" window.open(this.href,'win2','status=no,toolbar=no,scrollbars=yes,titlebar= no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no ');
> return false;" rel="nofollow">Print This</a>
>

Which has nothing to do with PHP - this is javascript.

> And then the ServeThePrinterFriendlyPage.php file would then serve the
> page without the special effects that make sense on the screen (eg
> images, flash, ads, etc.) but don't on the printer. The
> target="_blank" attribute handles the case where JavaScript is not
> available and the onclick attribute handles the case where JavaScript
> is available. On the page served, you need to include a link like:
>

Which still won't create a print preview, as he wants.

> <a href="#" onclick="window.print();return false;">Print</a> and
> optionally one like<a href="#" onclick="window.close();return
> false;">Close</a>. The first is a button to print the page and the
> second is a button to close the popup window.
>
>>
>

And still nothing to do with PHP.

Using javascript to serve a different page not only has nothing to do
with PHP, it doesn't answer the user's question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Print preview in php [message #174252 is a reply to message #174233] Sat, 28 May 2011 13:12 Go to previous messageGo to next message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma: 0
Member
At Sat, 28 May 2011 02:05:04 -0700 (PDT) Co <vonclausowitz(at)gmail(dot)com> wrote:

>
> On 28 mei, 04:46, Robert Heller <hel...@deepsoft.com> wrote:
>> At Fri, 27 May 2011 21:24:36 -0400 Jerry Stuckle <jstuck...@attglobal.net=
>> wrote:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> On 5/27/2011 5:48 PM, Co wrote:
>>>> Hi All,
>>
>>>> I was wondering if someone can help me with a code to preview part of
>>>> a php page
>>>> and eventually print it.
>>>> I don't want to print all of the page with images etc, just the data
>>>> within a certain area of the page.
>>
>>>> Anyone know if this is possible?
>>
>>>> Regards
>>>> Marco
>>
>>> =A0From a web page? =A0Not possible. =A0PHP runs on the server and has =
> nothing
>>> to do with page layout (that's HTML/CSS). =A0Print preview runs on the
>>> client and is dependent on client settings, of which PHP has no knowled=
> ge.
>>
>> OTOH, if the web page in question is being served by the PHP code, all
>> you need to do is create a link, something like this:
>>
>> <a href=3D"/ServeThePrinterFriendlyPage.php?..." target=3D"_blank"
>> onclick=3D"window.open(this.href,'win2','status=3Dno,toolbar=3Dno,scrollb=
> ars=3Dyes,titlebar=3Dno,menubar=3Dno,resizable=3Dyes,width=3D640,height=3D4 =
> 80,directories=3Dno,location=3Dno');
>> return false;" rel=3D"nofollow">Print This</a>
>>
>> And then the ServeThePrinterFriendlyPage.php file would then serve the
>> page without the special effects that make sense on the screen (eg
>> images, flash, ads, etc.) but don't on the printer. =A0The
>> target=3D"_blank" attribute handles the case where JavaScript is not
>> available and the onclick attribute handles the case where JavaScript
>> is available. =A0On the page served, you need to include a link like:
>>
>> <a href=3D"#" onclick=3D"window.print();return false;">Print</a> and
>> optionally one like <a href=3D"#" onclick=3D"window.close();return
>> false;">Close</a>. The first is a button to print the page and the
>> second is a button to close the popup window.
>>
>>
>>
>> --
>> Robert Heller =A0 =A0 =A0 =A0 =A0 =A0 -- 978-544-6933 / hel...@deepsoft.c=
> om
>> Deepwoods Software =A0 =A0 =A0 =A0--http://www.deepsoft.com/
>> () =A0ascii ribbon campaign -- against html e-mail
>> /\ =A0www.asciiribbon.org=A0 -- against proprietary attachments
>
> what should there be in the ServeThePrinterFriendlyPage.php?
> Is that the same as in the normal page but without images etc?

Yes. Probably also without stuff like sidebars, menus, and extanious
navigation features -- just the basic printable content.

>
> Marco
>

--
Robert Heller -- 978-544-6933 / heller(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
Re: Print preview in php [message #174253 is a reply to message #174245] Sat, 28 May 2011 14:14 Go to previous messageGo to next message
dougatmilmacdotcom is currently offline  dougatmilmacdotcom
Messages: 24
Registered: May 2011
Karma: 0
Junior Member
In article <irqpf4$db0$1(at)dont-email(dot)me>, TK <tknospa(at)wejuggle2(dot)com> wrote:
> On 5/28/2011 7:04 AM, Co wrote:

>>
>> I found an example doing that but I still printed the whole page.
>
> Make the items you do not want to display have a class="nodisplay"
>
> In the print css sheet define .nodisplay {display:none;}
>
A much better idea IMHO is to make the items you do not want to *print* have a
class="noprint", and in the print css sheet define .noprint {display:none;} --
properly descriptive names make it much easier to understand what's going on.
Re: Print preview in php [message #174254 is a reply to message #174245] Sat, 28 May 2011 15:27 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
TK wrote:

> On 5/28/2011 7:04 AM, Co wrote:
>> Thomas 'PointedEars' Lahn wrote:
>>> Or you could much more simply define a stylesheet for print media that
>>> does the necessary adjustments:
>>>
>>> <link rel="stylesheet" media="print" href="print.css">
>>
>> I found an example doing that but I still printed the whole page.
>
> Make the items you do not want to display have a class="nodisplay"
>
> In the print css sheet define .nodisplay {display:none;}

It would be more sensible to let the class name indicate that this is about
printing only, like class="dontprint" and .dontprint { display:none; }.

Please trim your quotes to the relevant minimum; that usually includes to
not quote signatures. (I find it rather strange that you did, because the
signature was properly delimited and I know that your Thunderbird removes it
automatically when replying. You are not trolling, are you?)

You would also be well-advised to use a proper message-ID. As it is, anyone
could use dont-email.me because it is not a registered second-level domain
(`me.' is not a registered top-level domain to begin with). So your
message-IDs are not necessarily unique over a course of two years, with all
side-effects. (Again, you have to use
user_pref("mail.identity.default.FQDN", "dont-email.me"); in your user.js
and the like to post this header with Thunderbird …)


PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
Re: Print preview in php [message #174255 is a reply to message #174252] Sat, 28 May 2011 15:30 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
Robert Heller wrote:

> Co wrote:
>>> <a href=3D"#" onclick=3D"window.print();return false;">Print</a> and
>>> optionally one like <a href=3D"#" onclick=3D"window.close();return
>>> false;">Close</a>. The first is a button to print the page and the
>>> second is a button to close the popup window.
>>
>> what should there be in the ServeThePrinterFriendlyPage.php?
>> Is that the same as in the normal page but without images etc?
>
> Yes. Probably also without stuff like sidebars, menus, and extanious
> navigation features -- just the basic printable content.

You have been told that this is bad advice already. Having such a link
involves another navigation step for proper printing, it does not generally
generate the same content that is currently being viewed, and it creates a
hardly maintainable mess in the PHP code. DO NOT do this, use stylesheets
instead.

And will you *please* trim your quotes?


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Re: Print preview in php [message #174256 is a reply to message #174254] Sat, 28 May 2011 17:20 Go to previous messageGo to next message
TK is currently offline  TK
Messages: 6
Registered: May 2011
Karma: 0
Junior Member
On 5/28/2011 10:27 AM, Thomas 'PointedEars' Lahn wrote:

> Please trim your quotes to the relevant minimum; that usually includes to
> not quote signatures. (I find it rather strange that you did, because the
> signature was properly delimited and I know that your Thunderbird removes it
> automatically when replying. You are not trolling, are you?)

I did not notice that your signature was broken. It was dash dash and
should have been dash dash space.

> You would also be well-advised to use a proper message-ID. As it is, anyone
> could use dont-email.me because it is not a registered second-level domain
> (`me.' is not a registered top-level domain to begin with). So your
> message-IDs are not necessarily unique over a course of two years, with all
> side-effects. (Again, you have to use
> user_pref("mail.identity.default.FQDN", "dont-email.me"); in your user.js
> and the like to post this header with Thunderbird …)

I will work on that soon.

--
TK ~ aka Terry Kimpling
http://wejuggle2.com/
If you can be legally insane, can you not be illegally insane?
Re: Print preview in php [message #174257 is a reply to message #174256] Sat, 28 May 2011 18:07 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/28/2011 1:20 PM, TK wrote:
> On 5/28/2011 10:27 AM, Thomas 'PointedEars' Lahn wrote:
>
>> Please trim your quotes to the relevant minimum; that usually includes to
>> not quote signatures. (I find it rather strange that you did, because the
>> signature was properly delimited and I know that your Thunderbird
>> removes it
>> automatically when replying. You are not trolling, are you?)
>
> I did not notice that your signature was broken. It was dash dash and
> should have been dash dash space.
>

It's correct here. You might want to check your news reader.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Print preview in php [message #174258 is a reply to message #174256] Sat, 28 May 2011 18:27 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
TK wrote:

> On 5/28/2011 10:27 AM, Thomas 'PointedEars' Lahn wrote:
>> Please trim your quotes to the relevant minimum; that usually includes to
>> not quote signatures. (I find it rather strange that you did, because
>> the signature was properly delimited and I know that your Thunderbird
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> removes it automatically when replying. You are not trolling, are you?)
>
> I did not notice that your signature was broken.

It was not broken.

> It was dash dash and should have been dash dash space.

It was dash dash space. Try Ctrl+U to verify using the message source.


PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
Re: Print preview in php [message #174259 is a reply to message #174258] Sat, 28 May 2011 20:18 Go to previous messageGo to next message
TK is currently offline  TK
Messages: 6
Registered: May 2011
Karma: 0
Junior Member
On 5/28/2011 1:27 PM, Thomas 'PointedEars' Lahn wrote:
> TK wrote:

>> It was dash dash and should have been dash dash space.
>
> It was dash dash space. Try Ctrl+U to verify using the message source.

Sorry, in my first response to you your signature shows without a space.
I have no idea why it displays that way, I will try to be more
attentive in the future. That hiccup must be why it was not
automatically trimmed. Your post was indeed correctly formed.

--
TK ~ aka Terry Kimpling
http://wejuggle2.com/
If you can be legally insane, can you not be illegally insane?
Re: Print preview in php [message #174271 is a reply to message #174254] Mon, 30 May 2011 12:32 Go to previous messageGo to next message
TK is currently offline  TK
Messages: 6
Registered: May 2011
Karma: 0
Junior Member
On 5/28/2011 10:27 AM, Thomas 'PointedEars' Lahn wrote:

> You would also be well-advised to use a proper message-ID. As it is, anyone
> could use dont-email.me because it is not a registered second-level domain
> (`me.' is not a registered top-level domain to begin with). So your
> message-IDs are not necessarily unique over a course of two years, with all
> side-effects. (Again, you have to use
> user_pref("mail.identity.default.FQDN", "dont-email.me"); in your user.js
> and the like to post this header with Thunderbird …)

I did not have a setting in about:config for
"mail.identity.default.FQDN" I put one in and it shows in regular email
for all accounts instead of the actual domain but not in newsgroup
postings. All the wejuggle2.com addresses have a message id of
webdesignforthe.com for example. Any ideas?
--
TK ~ aka Terry Kimpling
http://wejuggle2.com/
If you can be legally insane, can you not be illegally insane?
Re: Print preview in php [message #174278 is a reply to message #174271] Mon, 30 May 2011 16:58 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
TK wrote:

> On 5/28/2011 10:27 AM, Thomas 'PointedEars' Lahn wrote:
>> You would also be well-advised to use a proper message-ID. As it is,
>> anyone could use dont-email.me because it is not a registered
>> second-level domain (`me.' is not a registered top-level domain to begin
>> with). So your message-IDs are not necessarily unique over a course of
>> two years, with all side-effects. (Again, you have to use
>> user_pref("mail.identity.default.FQDN", "dont-email.me"); in your user.js
>> and the like to post this header with Thunderbird …)
>
> I did not have a setting in about:config for
> "mail.identity.default.FQDN" I put one in and it shows in regular email
> for all accounts instead of the actual domain but not in newsgroup
> postings. All the wejuggle2.com addresses have a message id of
> webdesignforthe.com for example. Any ideas?

| <tknospa(at)wejuggle2(dot)com>: host wejuggle2.com[66.185.20.111] said: 550 " (in
| reply to RCPT TO command)


PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
Re: Print preview in php [message #174288 is a reply to message #174278] Tue, 31 May 2011 12:34 Go to previous messageGo to next message
TK is currently offline  TK
Messages: 6
Registered: May 2011
Karma: 0
Junior Member
On 5/30/2011 11:58 AM, Thomas 'PointedEars' Lahn wrote:
> TK wrote:

>> I did not have a setting in about:config for
>> "mail.identity.default.FQDN" I put one in and it shows in regular email
>> for all accounts instead of the actual domain but not in newsgroup
>> postings. All the wejuggle2.com addresses have a message id of
>> webdesignforthe.com for example. Any ideas?
>
> |<tknospa(at)wejuggle2(dot)com>: host wejuggle2.com[66.185.20.111] said: 550 " (in
> | reply to RCPT TO command)

I thought you were worried about the message id - it was still
"dont-email.me".

I set the "mail.identity.default.FQDN" back to the default and set the
FQDN in eternal-september. The problem with message id seems to be cured.

--
TK ~ aka Terry Kimpling
http://wejuggle2.com/
If you can be legally insane, can you not be illegally insane?
Re: Print preview in php [message #174289 is a reply to message #174288] Tue, 31 May 2011 13:08 Go to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
TK wrote:

> On 5/30/2011 11:58 AM, Thomas 'PointedEars' Lahn wrote:
>> TK wrote:
>>> I did not have a setting in about:config for
>>> "mail.identity.default.FQDN" I put one in and it shows in regular email
>>> for all accounts instead of the actual domain but not in newsgroup
>>> postings. All the wejuggle2.com addresses have a message id of
>>> webdesignforthe.com for example. Any ideas?
>>
>> |<tknospa(at)wejuggle2(dot)com>: host wejuggle2.com[66.185.20.111] said: 550 "
>> |(in
>> | reply to RCPT TO command)
>
> I thought you were worried about the message id - it was still
> "dont-email.me".

I have tried you to send you my reply via e-mail, because this is
*off-topic* here, and that is what I got back for my efforts! :-(

> I set the "mail.identity.default.FQDN" back to the default and set the
> FQDN in eternal-september. The problem with message id seems to be cured.

If you mean that you let eternal-september.org set the Message-ID now, then
yes. Otherwise probably not as you do not own that domain either.


F'up2 poster

PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Storing parsed XML-elements as blobs
Next Topic: PHP Extension Won't Install
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 21:53:48 GMT 2024

Total time taken to generate the page: 0.04120 seconds