PHP include() function generate error for xml -


need help.

i create php file generate xml displaying marker in google map. works fine when open directly dir://file.php , xml file shown result.

but when open using include function : include ('file.php'); need in website structure, getting error :

    xml parsing error: mismatched tag..... 

why php include function generated error?

because shouldn't include file doesn't contain php code.

use readfile() instead


Comments

Popular posts from this blog

google app engine - 403 Forbidden POST - Flask WTForms -

Android layout hidden on keyboard show -

Parse xml element into list in Python -