Bug #12535 Updated: We'd like support for output buffering and "here" syntax
| From: | matt at boltbluecorp dot com | Date: | Thu, 02 Aug 2001 18:16:12 +0000 |
| Subject: | Bug #12535 Updated: We'd like support for output buffering and "here" syntax | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61871@lists.php.net to get a copy of this message | ||
ID: 12535
User updated by: matt@boltbluecorp.com
Reported By: matt@boltbluecorp.com
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.0.6
New Comment:
Wow, thanks for the quick feedback. And sorry. I looked hard but did not find these features. I
stand corrected.
Previous Comments:
------------------------------------------------------------------------
[2001-08-02 13:55:36] jeroen@php.net
Heredoc is supported, see the manual on strings.
You need three <<< , in stead of 2, and it works.
And output buffering is supported all the way since PHP 4, AFAIK...
See http://www.php.net/ob_start
------------------------------------------------------------------------
[2001-08-02 13:53:01] matt@boltbluecorp.com
Hello,
For a long time I've wished that PHP supported the "here" string syntax, i.e in Perl:
print <<EOF;
<html>
<body>
<font face="Arial" size="2">This is
great for outputting HTML</font>
</body>
</html>
EOF
or better yet...
$string = <<EOS;
Hi, this is
a multi-line
string.
EOS
The second example is a must considering that PHP does not support output buffering, which is
another feature that I believe is essential. It would be lovely to flush an output buffer and then
issue an HTTP header like a cookie or a redirect. Let me just say that I love PHP, but this is one
aspect in which it falls short of (forgive me) Active Server Pages.
Matt Flaherty
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12535&edit=1