Answer by Simon for Can PHP be used inside an XML file?
All three approaches are technically possible. However, I would not use cron, because it delays the update process of your XML-files after the database content has changed.You can easily embed PHP-Code...
View ArticleAnswer by Ignacio Vazquez-Abrams for Can PHP be used inside an XML file?
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...
View ArticleAnswer by khachik for Can PHP be used inside an XML file?
The third method you mentioned. I don't understand how cron can be used here, if there are data coming in users' request. The first method cannot be implemented.
View ArticleAnswer by fire for Can PHP be used inside an XML file?
Use a cron to automate a PHP script that builds the XML file. You can even automate the mail part as well in your PHP.
View ArticleCan PHP be used inside an XML file?
I am trying to generate a RSS feed from a mysql database I already have. Can I use PHP in the XML file that is to be sent to the user so that it generates the content upon request? Or should I use cron...
View Article