Why browser is trying to download my php script file?
问题 Just a quick one - I wrote a php script recently that dynamically creates XML file using API DOM. So I'm using this at the beginning: $dom = new DOMDocument('1.0', 'UTF-8'); And at the end it looks like this: $server = $_SERVER['DOCUMENT_ROOT']; $path_to_xml = "$server/project/file.xml"; file_put_contents($path_to_xml, $dom->saveXML()); It does everything I wanted but why browser is trying to download this php script instead of just run it? Please can someone help me with this. I'm pretty