php - Require prints a symbol -


when require php file, prints symbol.

code:

    echo 'test';      include('1.php');     echo 'test'; 

result in browser:

testtest 

but! when tried parse page jquery json parser, returned error, because said there symbol right in place require function called. can't see symbol in browser, online json parser can.

copy , paste result browser online json parser: screenshot

so question how fix error? , yes, there 100% no empty spaces anywhere in included code or somewhere else.

there chance of required file have utf8 encoding bom characters. if that's case try converting file (1.php) utf8 without bom.

more bom here


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -