php-general Digest 25 Oct 2009 13:44:45 -0000 Issue 6409
Topics (messages 299308 through 299315):
Re: php mail() function
299308 by: Per olof Ljungmark
299313 by: James Prentice
299314 by: James Prentice
cannot compile PHP 5.2.11 on Mac OS X 10.6.1
299309 by: Mari Masuda
Ubuntu and Apache
299310 by: Brian Hazelton
299311 by: Miles Thompson
How to Get the Sub Classes of a Parent Class
299312 by: Raymond Irving
299315 by: David Otton
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
James Prentice wrote:
It sends the bounced message to /var/mail/www-data and I get this:
--19BE8A70109.1256417846/homemade
Content-Description: Delivery report
Content-Type: message/delivery-status
Reporting-MTA: dns; homemade
X-Postfix-Queue-ID: 19BE8A70109
X-Postfix-Sender: rfc822; www-d...@homemade
Arrival-Date: Sat, 24 Oct 2009 13:57:26 -0700 (PDT)
Final-Recipient: rfc822; x...@shaw.ca
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; shawmail.vc.shawcable.net
--19BE8A70109.1256417846/homemade
Content-Description: Undelivered Message
Content-Type: message/rfc822
Received: by homemade (Postfix, from userid 33)
id 19BE8A70109; Sat, 24 Oct 2009 13:57:26 -0700 (PDT)
To: x...@shaw.ca
Although 5.0.0 actually means something else I'm pretty sure you are
rejected because of an invalid sender address or domain. Use a sender
address that is valid with your ISP's mail relay.
Just my $0.02
--
per
--- End Message ---
--- Begin Message ---
I also suspect that the problem is due to the sender address, but I
have tried using the shaw email address for the From: address that's
given to the mail() function and it still gets bounced. It seems like
the ISP should consider that address valid.
On Sat, Oct 24, 2009 at 2:20 PM, Per olof Ljungmark <p...@bsdlabs.com> wrote:
> James Prentice wrote:
>>
>> It sends the bounced message to /var/mail/www-data and I get this:
>>
>> --19BE8A70109.1256417846/homemade
>> Content-Description: Delivery report
>> Content-Type: message/delivery-status
>>
>> Reporting-MTA: dns; homemade
>> X-Postfix-Queue-ID: 19BE8A70109
>> X-Postfix-Sender: rfc822; www-d...@homemade
>> Arrival-Date: Sat, 24 Oct 2009 13:57:26 -0700 (PDT)
>>
>> Final-Recipient: rfc822; x...@shaw.ca
>> Action: failed
>> Status: 5.0.0
>> Diagnostic-Code: X-Postfix; shawmail.vc.shawcable.net
>>
>> --19BE8A70109.1256417846/homemade
>> Content-Description: Undelivered Message
>> Content-Type: message/rfc822
>>
>> Received: by homemade (Postfix, from userid 33)
>> id 19BE8A70109; Sat, 24 Oct 2009 13:57:26 -0700 (PDT)
>> To: x...@shaw.ca
>
> Although 5.0.0 actually means something else I'm pretty sure you are
> rejected because of an invalid sender address or domain. Use a sender
> address that is valid with your ISP's mail relay.
>
> Just my $0.02
>
> --
> per
>
--- End Message ---
--- Begin Message ---
But it seems like the 'From:' address being given to the PHP mail()
function is maybe being ignored, because the error log lists
'www-d...@homemade' as being the sender, rather than listing the shaw
address.
The snippet from the PHP code:
$email = $_POST['email'];
...
mail($to, $subject, $msg, 'From:' . $email);
I have tried setting both $to and $email to be the same shaw address
since I assumed it should be recognized by the mail server, but it's
still getting bounced. So why is 'www-d...@homemade' being listed as
the sender? Any ideas?
On Sat, Oct 24, 2009 at 9:17 PM, James Prentice <prentice....@gmail.com> wrote:
> I also suspect that the problem is due to the sender address, but I
> have tried using the shaw email address for the From: address that's
> given to the mail() function and it still gets bounced. It seems like
> the ISP should consider that address valid.
>
>
>
> On Sat, Oct 24, 2009 at 2:20 PM, Per olof Ljungmark <p...@bsdlabs.com> wrote:
>> James Prentice wrote:
>>>
>>> It sends the bounced message to /var/mail/www-data and I get this:
>>>
>>> --19BE8A70109.1256417846/homemade
>>> Content-Description: Delivery report
>>> Content-Type: message/delivery-status
>>>
>>> Reporting-MTA: dns; homemade
>>> X-Postfix-Queue-ID: 19BE8A70109
>>> X-Postfix-Sender: rfc822; www-d...@homemade
>>> Arrival-Date: Sat, 24 Oct 2009 13:57:26 -0700 (PDT)
>>>
>>> Final-Recipient: rfc822; x...@shaw.ca
>>> Action: failed
>>> Status: 5.0.0
>>> Diagnostic-Code: X-Postfix; shawmail.vc.shawcable.net
>>>
>>> --19BE8A70109.1256417846/homemade
>>> Content-Description: Undelivered Message
>>> Content-Type: message/rfc822
>>>
>>> Received: by homemade (Postfix, from userid 33)
>>> id 19BE8A70109; Sat, 24 Oct 2009 13:57:26 -0700 (PDT)
>>> To: x...@shaw.ca
>>
>> Although 5.0.0 actually means something else I'm pretty sure you are
>> rejected because of an invalid sender address or domain. Use a sender
>> address that is valid with your ISP's mail relay.
>>
>> Just my $0.02
>>
>> --
>> per
>>
>
--- End Message ---
--- Begin Message ---
Hi,
I am setting up my Mac Book Pro running Mac OS X 10.6.1 as a
development environment for Drupal. I already successfully have MySQL
5.1.40 and Apache 2.2.11 up and running. I tried to compile PHP
5.2.11 in the following manner and keep getting an error. Any help
would be great!
1. Downloaded php-5.2.11.tar.gz from php.net. The MD5 checksum of
the downloaded file is the same as what is listed on php.net so I do
not think the file is corrupt.
2. Expanded php-5.2.11.tar.gz by double-clicking the file I
downloaded and moving the resulting folder (named "php-5.2.11") to my
desktop.
In terminal did the following (I am following the instructions in the
box labeled "Example #1 Installation Instructions (Apache 2 Shared
Module Version)" at http://www.php.net/manual/en/install.unix.apache2.php
)
3. cd /Users/mari/Desktop/php-5.2.11
4. ./configure --prefix=/Applications/php --disable-short-tags --with-
mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config
--with-apxs2=/Applications/apache/bin/apxs --enable-mbstring --with-
pdo-mysql=/usr/local/mysql
5. make
At this point, make does not complete and it exits with an error:
---start error---
Undefined symbols:
"_res_9_dn_expand", referenced from:
_zif_dns_get_mx in dns.o
"_res_9_search", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_check_record in dns.o
"_libiconv", referenced from:
__php_iconv_strlen in iconv.o
_php_iconv_string in iconv.o
_php_iconv_string in iconv.o
__php_iconv_strpos in iconv.o
__php_iconv_appendl in iconv.o
__php_iconv_appendl in iconv.o
_zif_iconv_substr in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_php_iconv_stream_filter_append_bucket in iconv.o
_php_iconv_stream_filter_append_bucket in iconv.o
"_res_9_dn_skipname", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_mx in dns.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
---end error---
To try to simplify things, I deleted the php-5.2.11 folder I created
in step 2 above and repeated steps 2 and 3. Then at this point I only
did ./configure by itself with no options, thinking that I could try
to see if any of my configuration options were causing the issue.
Alas, no, the problem still happens; the error is now this:
---start error---
Undefined symbols:
"_res_9_dn_expand", referenced from:
_zif_dns_get_mx in dns.o
"_res_9_search", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_check_record in dns.o
"_libiconv", referenced from:
__php_iconv_strlen in iconv.o
_php_iconv_string in iconv.o
_php_iconv_string in iconv.o
__php_iconv_strpos in iconv.o
__php_iconv_appendl in iconv.o
__php_iconv_appendl in iconv.o
_zif_iconv_substr in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_php_iconv_stream_filter_append_bucket in iconv.o
_php_iconv_stream_filter_append_bucket in iconv.o
"_res_9_dn_skipname", referenced from:
_zif_dns_get_mx in dns.o
_zif_dns_get_mx in dns.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
---end error---
What can I do to get around this problem and compile PHP? Thanks!
Mari
--- End Message ---
--- Begin Message ---
I know this is not quite on topic but I do not know where else to turn.
I needed to reinstall ubuntu and now I cannot change myself to be the
owner of var www. I had been able to change myself to the owner of it
and create, delete and modify any files I wanted before I had to
reinstall. Now it seems the change is not taking effect. What happens
is I use the sudo chown command and it shows that I am the owner. I have
a script that creates a file when I go to the page and it creates a file
and has www-data as the owner, not me. What am I doing wrong?
Thanks,
Brian
--- End Message ---
--- Begin Message ---
Brian,
You're not doing anything wrong. Apache runs as www-data in Ubuntu, so any
file created by Apache will belong to that owner:group.
Add yourself to the www-data group and life will become easier.
Cheers - Miles
On Sat, Oct 24, 2009 at 7:42 PM, Brian Hazelton <bdh_2...@comcast.net>wrote:
> I know this is not quite on topic but I do not know where else to turn. I
> needed to reinstall ubuntu and now I cannot change myself to be the owner of
> var www. I had been able to change myself to the owner of it and create,
> delete and modify any files I wanted before I had to reinstall. Now it seems
> the change is not taking effect. What happens is I use the sudo chown
> command and it shows that I am the owner. I have a script that creates a
> file when I go to the page and it creates a file and has www-data as the
> owner, not me. What am I doing wrong?
> Thanks,
> Brian
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Miles Thompson
~~~~~~~~~~~~~~~~~~~~~~~~~~
"The piano keys are black and white,
But they sound like a million colours in your mind"
Spider's Web - Katie Melua
--- End Message ---
--- Begin Message ---
Hello,
Does any know of an optimized solution to get all the subclasses for a parent
class?
__
Raymond Irving
--- End Message ---
--- Begin Message ---
2009/10/25 Raymond Irving <xwis...@yahoo.com>:
> Hello,
>
> Does any know of an optimized solution to get all the subclasses for a parent
> class?
That's not exactly a typical thing to want, although I can see a
couple of ways to do it... what exactly are you trying to do, and are
you using PHP5.3?
--- End Message ---