[PHP] Need a safe way to get user supplied data into a varaible.

2003-06-08 Thread Simon Coggins
Hi,
After lots of looking I've worked out I can't use heredoc for what I
want. Does anyone else have any better ideas on how to do this:

I have a template file that is used to generate a html page. in this
template I currently have:

$body = <

[PHP] A Question with heredoc

2003-06-08 Thread Simon Coggins
Hi
I'm writing a wrapper for some mailman archives and i'm trying to put
them message into a variable as in:

$body = <<   
  
   

Error:
Warning: Unexpected character in input: '' (ASCII=12) state=5 in
test.html on line 6

Is there any way I can stop it complaining about it. Or is there
another way I can put the the text into the string (it's done via a
template file and a string substitution). The contents could be
anything so I thougth heredoc would work..

Thanks in advance.. I'm not on the list so please reply to me directly.

Regards
Simon

-- 
Simon Coggins (SAGE-AU Member)Email: [EMAIL PROTECTED]
Network and System Management Officer Phone: +61-2-4221-3775
Information Technology Systems (ITS)  Mobile: 0408 115861
University of Wollongong, 2522, Australia Fax:   +61-2-4229-1985


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php