Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001032

Re: [PHP] "Here Document" function AWOL From: Kristofer Widholm (webpharmacy <email protected>)
Date: 03/31/01

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 <email protected> 191 Grand Street, Brooklyn NY 11211 718.599.4893 ______________________________________

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>