Results 1 to 3 of 3
Sep 21, 2005, 23:03 #1
$var = <<<EOD fail after server move
all my uses ofPHP Code:
$var = <<<EOD
any idea how i can fix this? i would hate to have to edit the all my files and replace EOD with quotes. I know it's the EOD because once i do remove them, the scripts run fine.
Sep 21, 2005, 23:19 #2
It is very important to note that the line with the closing identifier contains no other characters, except possibly a semicolon (;). That means especially that the identifier may not be indented, and there may not be any spaces or tabs after or before the semicolon.
Probably the nastiest gotcha is that there may also not be a carriage return (\r) at the end of the line, only a form feed, AKA newline (). Since Microsoft Windows uses the sequence \r as a line terminator, your heredoc may not work if you write your script in a Windows editor. However, most programming editors provide a way to save your files with a UNIX line terminator.
Sep 21, 2005, 23:30 #3Originally Posted by BuschPHP Code:
$var = <<<EOD(NO Space)