Re: Is this a bug in PHP 4.3.4?

From: Date: Mon, 29 Nov 2004 15:29:42 +0000
Subject: Re: Is this a bug in PHP 4.3.4?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203062@lists.php.net to get a copy of this message
Octavian Rasnita wrote:
Hi all, I use the following program:
function print_quotes () { output_reset_rewrite_vars(); echo <<<EOF <table> ... </table> EOF; } I have tried this program under Fedora Core 2 in command line mode and on an Apache web server with the same results. Do you have suggestions for making this program work and why does this happen? I think the problem is with your 'here document' this is the traditional way of doing things in perl but in php you could 'go back into HTML. by using the '?>' sequence. Thus your program might become
function print_quotes () { output_reset_rewrite_vars(); ?> <table> ... </table> <? } There are pros and cons of both approach but the bit of code i have given will produce the expected result.
-- Raditha Dissanayake. ------------------------------------------------------------------ http://www.radinks.com/print/card-designer/ | Card Designer Applet http://www.radinks.com/upload/ | Drag and Drop Upload

« previous php.general (#203062) next »