It say that I have an error T_STRING on the meta line.. I write it correct, I don't understand why it doesn't work...

$body = "
		<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
		<html>
		<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

    You've forgotten to escape some " characters.

      Yup, Weedpacket's correct as usual. Either escape the remaining double-quotes or put that string into a HEREDOC.

        Or just use single quotes for the HTML attribute values, since HTML doesn't care. 🙂

          2 months later
          Write a Reply...