Quantcast
Channel: Can PHP be used inside an XML file? - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by Ignacio Vazquez-Abrams for Can PHP be used inside an XML file?

$
0
0

Set the Content-type header to text/xml and have your PHP script generate XML just as it would generate any other content. You may want to consider using caching though, so you don't overwhelm the server by accident.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>