Turadg Aleahmad | 24 Sep 01:19 2004

Re: Mail conversation parser?

Alan Knowles wrote:
> Sounds interesting - you probably need to look at JWZ's notes on email 
> threading to do this..

Thanks, though I'm not looking to write a thread detection algorithm. 
We have a custom identifier for our forum threads and we don't use Reply-To.

I was talking about a class for "parsing out the novel content of an 
e-mail reply à la Gmail". Gmail has a feature that hides the text quoted 
in replies since the original message is there on the same screen.

The following code is my current algorithm for filtering out the quoted 
portion of the reply.  I was thinking it may be useful to others and I 
thought that it could be expanded to handle the myriad ways different 
mail programs quote the previous message.  So far I'm only certain the 
code below works with Thunderbird (and only with plain/text parts).

Is this worthy of a PEAR package?  What name?  Mail_Reply, Text_Mail, ??

function isQuotedLine($line) {
     return preg_match("/^>+/", $line);
function isAttributionLine($line) {
     return strstr("wrote:", $line);
  *  <at> param array bodyLines is an array of lines in a message
function filterQuotedReply ($bodyLines) {
     $keep = array();
(Continue reading)


#26346 [Com]: Cannot output to a shared printer

 ID:               26346
 Comment by:       liviu dot dospinescu at rdslink dot ro
 Reported By:      rich at dwell dot co dot uk
 Status:           Open
 Bug Type:         PECL related
 Operating System: Windows 2003
 PHP Version:      4.3.4
 New Comment:

There is a problem with php_printer.dll

I have made all the changes in php.ini, but launching Winows XP, there
is a "WARNING" mesaj like this:
"Unknown(): Unable to load dynamic library 'C:\php\extensions'(the
location of library)  - The specific module could not be found"!
Please, help me!!
I am working under Windows XP Prof. with php4.3.8.

Previous Comments:

[2004-07-23 18:11:18] pete at downplay dot co dot uk

I have a slightly different problem (although I am able to recreate the
problem you have).

PHP/Apache/MySQL is running on a Win2003 server computer. The label
printer is running on an XP machine on the network. I have installed
the drivers locally on the Apache machine, so Windows should handle the
network communication. When I print the document from PHP as follows : 
(Continue reading)

Teemu Näppi | 24 Sep 09:29 2004

[PEPr] Proposal for System::System_Serial

Teemu Näppi (http://pear.php.net/user/teenap) proposes System::System_Serial.

You can find more detailed information here:

Sent by PEPr, the automatic proposal system at http://pear.php.net


PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Stephan Schmidt | 24 Sep 09:54 2004

[PEPr] Comment on System::System_Serial

Stephan Schmidt (http://pear.php.net/user/schst) has commented on the proposal for System::System_Serial.



1. You seem to have some indentation problems (are you using tabs?)

2. Please remove all methods that you marked with  <at> ignore

3. Please change System_Serial_Win32COMconnection::newConnection() to

4. Please consider providing a PHP4 version. Except visibility you are not
using any PHP5-specific features

5. Please follow the coding standards:
if (!$result) $this->_initialized = TRUE;
should be
if (!$result) {


Proposal information:


(Continue reading)

Ian Eure | 24 Sep 10:14 2004

Re: [PEPr] Comment on System::System_Serial

On Friday 24 September 2004 12:54 am, Stephan Schmidt wrote:
> 4. Please consider providing a PHP4 version. Except visibility you are not
> using any PHP5-specific features
'static function' is only in PHP5, iirc.
Ian Eure | 24 Sep 10:28 2004

[PEPr] Comment on System::System_Serial

Ian Eure (http://pear.php.net/user/ieure) has commented on the proposal for System::System_Serial.


Some additional issues:

1. Why do you have a System_Serial_Factory class, instead of a
System_Serial class with a factory method?

2. What is the point of the switch in
System_Serial_Factory::NewConnection? You seem to drop-through to an if
statement, so the switch appears to just be bloat.

3. Why is there a function which only returns the PHP_OS constant? Why not
use it directly?

4. More CS stuff; FALSE should be changed to false.

5. I think there may be path-related security implications to calling
"mode" in System_Serial_Win32COMconnection::init() without a full path. Is
"mode" a builtin function, or an external command? If it's external, it
should have the full path added.

6. Any reason why System_Command couldn't be used to execute these
commands? I believe it handles the path-related issues I raised in point

7. I think the class names are misleading. COM connetions could work on
64-bit Windows, not just Win32. And many *NIX variants use /dev/(whatever)
(Continue reading)

Martin Jansen | 24 Sep 10:57 2004

[PEPr] Comment on System::System_Serial

Martin Jansen (http://pear.php.net/user/mj) has commented on the proposal for System::System_Serial.


In addition to the other comments a bit more:

1) PEAR has the so called "one-class-per-file" convention, which means
that multiple classes should end up in multiple files.

2) Why don't you simply use

    return PHP_OS;

in _determineOS()?

3) I'd suggest to rename getLine() to readLine() and getArray() to

4) I'm by no means an expert in serial communication, but shouldn't there
be a way to change the value of $badCommandResponse in getArray()? (There
may be systems that use a different protocol dialect.)

5) I'm missing documentation for the package.  Are you going to write

Generally this looks like a useful addition for PEAR.

Proposal information:
(Continue reading)

Bertha G. Hatch | 24 Sep 13:50 2004

Get discount drugs without prescription

Discount generic drugs. save over 70%

todays specials, 
Viagra, retails for $15, we sell for 3!!!
Prozac, retails for $6, we sell for $1.50!!

- Private Online ordering!
- World wide shipping!
- No Prescription required!!

Check it out: http://888-luvu.com/?index

No thanks: http://888-luvu.com/rm.html


PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Teemu Näppi | 24 Sep 16:29 2004

[PEPr] Comment on System::System_Serial


Thanks for your helpful critique.

The code in System_Serial has been a part of a bigger program and
inherits it's oddities from that context.

I've changes to the code as suggested by Stephan Schmidt, Ian Eure and
Martin Jansen.
The things left unchanged are:
- PHP 5 is required indeed by few features aside from variable
visibility in the code, but singleton for one would not work without
$_instance being static. 
- I'd wish the System_Serial package not to be dependend on any other
packages, so pairing it with System_Command is something I'd like to
avoid. I solved the possible security issue in calling "mode" in Windows
by inserting the full path to the command.
- What with the getLine() and getArray() function names, I've kept them
as they were on the logic that as those functions use fgets to read the
port it's to me clearer to call them get...() and also if I sometime in
the future write other functions using fread (or similar), the
appropriate names would already be taken.

>>> "Martin Jansen" <mj <at> php.net> 24.09.04 11:58 >>>

Martin Jansen (http://pear.php.net/user/mj) has commented on the
proposal for System::System_Serial.


(Continue reading)

Ryan King | 24 Sep 20:32 2004

Re: php_uname() on OS X?

Darwin IceBook.local 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug  5 
19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC  Power 

On Sep 22, 2004, at 11:11 PM, Greg Beaver wrote:

> Hi,
> Could someone with OS X please send me the output of this script?
> <?php
> echo php_uname();
> ?>
> I need it to implement the OS dependency type.
> Thanks,
> Greg
> -- 
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

"There are only the pursued, the pursuing, the busy and the tired." - 
The Great Gatsby

(Continue reading)