Re: "Here Document" function AWOL

From: Date: Sat, 31 Mar 2001 05:35:02 +0000
Subject: Re: "Here Document" function AWOL
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-46435@lists.php.net to get a copy of this message
Here's what you wrote, 01.03.30:
http://www.php.net/manual/html/language.types.string.html#AEN2504 what you wrote looks correct...just make sure you have no trailing whitespace on the $body = <<<EOQ line (hit return right after the q) same with EOQ; it has to be on a line by itself... best of luck jack
Silly me, I kept searching php.net and AIMS for "here document", and found nothing. I should have been looking for "here doc". Also, none of the documentation mentions the fact that there can be no white space after the first identifier. It is only specified for the closing identifier. I did have a trailing white space after the opening identifier. Removing it solved the problem. Thanks for your help. -- ______________________________________ Kristofer Widholm Web Pharmacy webpharmacy@brokenhill.net 191 Grand Street, Brooklyn NY 11211 718.599.4893 ______________________________________

« previous php.general (#46435) next »