php-general Digest 26 Nov 2010 12:32:34 -0000 Issue 7055

Topics (messages 309676 through 309679):

Re: Can't find existing file
        309676 by: Tommy Pham

Possible issue in mail() function?
        309677 by: Tom Hendrikx

preg_match fails to resolve variable as a subject
        309678 by: Da Rock

PHP-driven alternative to Crystal Report
        309679 by: AmirBehzad Eslami

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
> -----Original Message-----
> From: Tamara Temple [mailto:[email protected]]
> Sent: Thursday, November 25, 2010 1:45 PM
> To: [email protected]
> Cc: Tommy Pham; Daniel P. Brown; Dee Ayy; PHP General
> Subject: Re: [PHP] Can't find existing file
> 
> 
> On Nov 25, 2010, at 8:07 AM, Richard Quadling wrote:
> >
> > I prefer PICNIC.
> >
> > So you can now have a Senior Picnic or a Kiddies Picnic and it all
> > sounds quite pleasant.
> 
> Ok, I give, what's a PICNIC?

IIRC, Problem In Chair Not In Computer :)

Regards,
Tommy


--- End Message ---
--- Begin Message ---
Hi,

I noticed that the mail() function in php 5.3.3 on gentoo linux triggers
a warning when used. A simple debug script with the contents:

<?php
// recipient, subject, body
mail("[email protected]", "mail() test", "This is a test");
?>

does send mail, but it also raises a warning:

Warning: mail(1): failed to open stream: Permission denied in
/var/www/www.example.com/htdocs/test-mail/index.php on line 5

After some googling [1] and fiddling with permissions, the message
disappears when php has write permissions to the file
/var/www/www.example.com/htdocs/test-mail/1 , in which it writes the
following data:

==8<==
mail() on [/var/www/www.example.com/htdocs/test-mail/index.php:5]: To:
[email protected] -- Headers:
==8<==

Is this some debug output that someone forgot to remove?

When relevant, the sendmail_path used is "/usr/sbin/sendmail -t -i",
which is a regular Postfix sendmail.

[1] http://stackoverflow.com/questions/1906403

--
Kind regards,
        Tom Hendrikx

--- End Message ---
--- Begin Message --- I have been scratching on this for some time now, and throughout I've been trying subscribe to this list.

Pardon if this is a stupid question, but I googled for days on this and still couldn't get it to work.

Is there a known issue with php's preg_match? I can get it to work on a string directly, but if I use a variable it fails with no match. pcretest works, and the variable prints correctly. I also used a number of online regex testers and worked, one gave me the basis of the code.

I can only post a piece of the code as I don't wish to offend, give you some clue as to how far strung I am.

preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command), &$matches)

I've separated the command so it outputs to a variable, and placed the variable as the subject with the same result. It also fails with system() as well.

A little light on the subject (pardon the pun :) ) would be very helpful. I know its very simple code, but its just a base to something else.


Cheers

--- End Message ---
--- Begin Message ---
Dear List,

I'm looking for an open-source database reporting tool, which is written in
PHP.
Do you know of any php-driven alternative to Crystal Report?
What do you recommend?

Please let me know.
Thank you very much.

-behzad

--- End Message ---

Reply via email to