The code runs normally in win5.3.13, but syntaxerror and unexpectedT_STRING appear in linux5.2.8. check the code first. & Lt ;? Php & nbsp; header ('content-type: & nbsp; text/XML'); & nbsp ;? & Gt; & lt code runs normally in win5.3.13 but syntax error, unexpected T_STRING appears in linux5.2.8.
First look at the code.
Run win5.3.13 normally on the local client. No errors.
However, an error occurs on the server. (I don't know how the server is configured .) Linux5.2.8
Reference
Parse error: syntax error, unexpected T_STRING in/home/XXXXXXXX/emailReturn. php on line 2
Then I try the code one by one on the server side.
echo '
'; ?>
The server runs normally. What is this error? why is it found? PHP error sharing: <... 'Data-pics = ''>
------ Solution --------------------
Php on your server, enabling short flag
For An invalid xml name
------ Solution --------------------
You have enabled the short_open_tags function in php. ini, Short_open_tag