php - Invisible special character -
All Please download the index.php file from this link Please run it function getip () is not working. The reason I found out is an invisible character: Solution: Please look closer, there is some place after "$ _SERVER ['REMOTE_ADDR'];" And it's not even "white space". If we remove that place then everything goes well.
Question: I need to know what is the invisible character, and how can I avoid these types of errors in future? Does it depend on the IDE we are using.? If there are thousands of entries in one page in these entries then what can I do?
& lt ;? Php function getip () {$ dp = $ _SERVER ['REMOTE_ADDR']; An echo $ dp; } Milan (); ? & Gt;
quote:
"= C2 = A0 "Bytes represents C2A, however, since it is UTF-8, it translates 00A, which is Unicode for non-breaking space.
You have a UTF-8 encoded file in which one. It looks like a space character; But PHP does not see it as a blank space and it will complain about the syntax error.
Comments
Post a Comment