note 77385 added to function.error-log
| From: | AnonymousDoesNotForgive at osu1 dot php dot net | Date: | Mon, 27 Aug 2007 18:03:46 +0000 |
| Subject: | note 77385 added to function.error-log | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129837@lists.php.net to get a copy of this message | ||
Most of the mail headers can be overridden in an error_log call, but there's no apparent way to
override the subject line. Adding a 'Subject' header does not replace the existing one,
it simply adds a second subject header...
<?
error_log(
'blah blah blah',
1,
'user@example.com',
'From: root@example.com\nMime-Version: 1.0\nContent-Type: text/html; charset=utf8\nSubject: My
message...\n'
)
/*
From: root@example.com
To: user@example.com
Mime-Version: 1.0
Content-Type: text/html; charset=utf8
Subject: My message...
Subject: PHP error_log message
blah blah blah
*/
?>
As of yet, I've not found a way around this. Has anyone else?
----
Server IP: 64.71.164.2
Probable Submitter: 65.106.220.162
----
Manual Page -- http://www.php.net/manual/en/function.error-log.php
Edit -- https://master.php.net/note/edit/77385
Del: integrated -- https://master.php.net/note/delete/77385/integrated
Del: useless -- https://master.php.net/note/delete/77385/useless
Del: bad code -- https://master.php.net/note/delete/77385/bad+code
Del: spam -- https://master.php.net/note/delete/77385/spam
Del: non-english -- https://master.php.net/note/delete/77385/non-english
Del: in docs -- https://master.php.net/note/delete/77385/in+docs
Del: other reasons-- https://master.php.net/note/delete/77385
Reject -- https://master.php.net/note/reject/77385
Search -- https://master.php.net/manage/user-notes.php