Reputation: 1
I migrated a php app form one server to another (5.2.4 to 5.2.17) and all the output i get from the application on the new server is questions marks:
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
What I've noticed is that if I echo something from outside of function declarations I get the correct text, but if it's inside the function, I get the question mark:
if(!function_exists('nosql')){
echo "test"; // outputs correct
function nosql(){
echo "a new test"; // outputs "???????????????" to the page
Thanks in advance.
-K
Upvotes: 0
Views: 163
Reputation: 197787
Check the encoding of the file in question. Save it as UTF-8 w/o BOM.
It's the best guess I can give with the information you've provided. I can give you some more guesses if that is not the issue.
Upvotes: 1