| Posted by Mary Pegg on 04/15/07 15:34 
ken wrote:
 > is there a way to make a php page only output content that is generated
 > from php statements, such as print, or echo?  ie: if I have whitespace
 > (or other text) outside my <?php .... ?> block i do not want that to be
 > returned.
 >
 > of course i can do this by making sure my php file starts with <?php and
 > ends with ?> and there is no leading or trailing whitespace.
 
 Make sure there's no leading whitespace (which is pretty obvious) and
 simply leave off the ?> at the end.
 
 --
 "Checking identity papers is a complete waste of time.  If anyone can
 be counted on to have valid papers, it will be the terrorists".
  Navigation: [Reply to this message] |