I was working on some php code yesterday and one of the lines in it
was:
print "<?xml version=\"1.0\" ?>\n";
when I tried to run it I would get an unexpected $end on the last line
of the script. After a while of debugging the code, commenting out
lines etc I figured out the above line was causing the issue by
changing it to:
print "<?xml version=\"1.0\" ?".">\n";
and it worked.
The reason I mention compiles comments in the subject, is even with
the original line commented php was still giving the error. I finally
figured out it didn't like the ?next to each other, it was seeing it
as an end to the script, even though it was originally in a print line
and then later in a commented line.
Is this normal, that you have to always seperate ?when using it in
php no matter where it is?
Bill H