php-general Digest 3 Apr 2006 00:02:13 -0000 Issue 4049
Topics (messages 233085 through 233090):
Re: microsoft PHP ?
233085 by: tedd
233086 by: Miles Thompson
233087 by: Zouari Fourat
233088 by: tedd
return path of mail function
233089 by: Andrew Darrow
233090 by: Chris
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:
php-general@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
At 4:20 PM -0500 4/1/06, Joe Wollard wrote:
Leave poor Zouari alone! I for one think that Microsoft buying Zend would be
the best thing to happen to PHP, EVAR!
You might not think that way if you had been developing in M$
QuickBASIC for the Mac. One day M$ just said "Nope, the line isn't
making the money we want, so we're dropping it." There were a lot of
developers who were left hanging -- I wouldn't want to be there again.
If at all possible, I choose any alternative over what M$ provides.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
--- End Message ---
--- Begin Message ---
At 11:38 AM 4/2/2006, tedd wrote:
At 4:20 PM -0500 4/1/06, Joe Wollard wrote:
Leave poor Zouari alone! I for one think that Microsoft buying Zend would be
the best thing to happen to PHP, EVAR!
You might not think that way if you had been developing in M$ QuickBASIC
for the Mac. One day M$ just said "Nope, the line isn't making the money
we want, so we're dropping it." There were a lot of developers who were
left hanging -- I wouldn't want to be there again.
If at all possible, I choose any alternative over what M$ provides.
tedd
--
Ditto to what Tedd just wrote - a major client has a project stranded
forever in VB6 because MSFT broke the model with VB.NET. There are
constructs and structures which were perfectly legitimate when it was first
conceived, when VB4 was the current version.
So - when I was asked to write a little app to maintain some subscriber
billing info and create some reports on the desktop side, which could have
been done in Excel, I opted for PHP, PHP-GTK and MySQL. There was a
learning curve with PHP-GTK's layout (Glade helped a lot!!) but this will
continue to work, Windows or Linux, and should run on later Macs.
Great feeling!
Miles
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 3/31/2006
--- End Message ---
--- Begin Message ---
the best april joke i got :)
On 4/2/06, tedd <[EMAIL PROTECTED]> wrote:
> At 4:20 PM -0500 4/1/06, Joe Wollard wrote:
> >Leave poor Zouari alone! I for one think that Microsoft buying Zend would be
> >the best thing to happen to PHP, EVAR!
>
> You might not think that way if you had been developing in M$
> QuickBASIC for the Mac. One day M$ just said "Nope, the line isn't
> making the money we want, so we're dropping it." There were a lot of
> developers who were left hanging -- I wouldn't want to be there again.
>
> If at all possible, I choose any alternative over what M$ provides.
>
> tedd
> --
> --------------------------------------------------------------------------------
> http://sperling.com
>
--- End Message ---
--- Begin Message ---
At 5:00 PM +0200 4/2/06, Zouari Fourat wrote:
the best april joke i got :)
It wasn't a joke.
M$ has one thing on their mind, and that is $.
If their bottom line isn't improved by whatever they produce, then
they drop it. If it hurts thousands of developers who supported their
product in process, then that's to be expected -- after all it's M$
That reminds me of story about a young girl who in the middle of
winter came across a poisonous snake laying in the snow. She picked
up the snake and took it in doors and placed it by the fire and gave
it warm food and drink and saved the snake's life. The snake, after
being revived, bit her. She proclaimed "Why did you do that? I saved
your life and now because you bit me, I'll die." The snake replied "I
don't understand your confusion, you knew I was a snake when you
found me."
Whenever possible, I now take the fork in the road not traveled by M$.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
--- End Message ---
--- Begin Message ---
I'm having a problem setting the return-path using the mail function. I seem to
be able to modify any of the other header information I want, but not this one
item.
Here's my code:
$headers = "Return-Path: Test <test@test.com>\r\n" .
"From: Test <test@test.com>\r\n" .
"Reply-To: Test <test@test.com>\r\n";
$sub="Test sub";
$msg="Test msg";
$to="[EMAIL PROTECTED]";
mail($to, $sub, $msg, $headers, '-f test@test.com');
And here's the headers that come in:
Return-path: <[EMAIL PROTECTED]>
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Sun, 02 Apr 2006 15:19:45 -0500
Received: from nobody by amsterdam.servershost.net with local (Exim 4.52)
id 1FQ933-00082V-8q
for [EMAIL PROTECTED]; Sun, 02 Apr 2006 15:19:45 -0500
To: [EMAIL PROTECTED]
Subject: Test sub
X-PHP-Script: www.drewpydraws.com/crap.php for ip address
From: Test <test@test.com>
Reply-To: Test <test@test.com>
Message-Id: <[EMAIL PROTECTED]>
Date: Sun, 02 Apr 2006 15:19:45 -0500
X-Antivirus: AVG for E-mail 7.1.385 [268.3.4/299]
Mime-Version: 1.0
Content-Type: text/plain
The "From" and "Reply-To" get set correctly so it works fine on e-mail clients,
but some of the messages will be delievered to cell phones that display the
return-path instead of from and reply-to.
Any thoughts on how I would go about setting the value for Return-Path?
~Drew
www.drewpydraws.com
--- End Message ---
--- Begin Message ---
Andrew Darrow wrote:
I'm having a problem setting the return-path using the mail function. I seem to be able to modify any of the other header information I want, but not this one item.
Here's my code:
$headers = "Return-Path: Test <test@test.com>\r\n" .
"From: Test <test@test.com>\r\n" .
"Reply-To: Test <test@test.com>\r\n";
$sub="Test sub";
$msg="Test msg";
$to="[EMAIL PROTECTED]";
mail($to, $sub, $msg, $headers, '-f test@test.com');
No space between -f and the email.
I assume your host doesn't have safe-mode on? (You can't use this method
if so).
Check a phpinfo page and look for:
sendmail_from
If that's set, this way won't do it either, you'll need to do:
$orig_sendmail_from = ini_get('sendmail_from');
// this should match what phpinfo tells you but replace the email. so
might be '-f'.$return_path
ini_set('sendmail_from', $return_path);
mail($to, $sub, $msg, $headers);
and leave off the last parameter.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---