Hello:
I'm writing my first php app and I have a problem.
Initially I put template type strings, such as HTML Headers and page
footers in a MySQL table and called them up with a php SQL query to
include them in the printed HTML, This worked great but then I learned
about includes and I tried using includes to put them into the HTML.
1. I assume that this is faster than the query method because that's
what people seem to do. Am I right about that?
2. The following string works as a query result but not as an include
file. Could someone be so kind as to explain to me why?
<?xml version="1.0" encoding="UTF-8"\x3f>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
The parser chokes on the first line. If I remove it the include works
fine.
Thanks,
Ken