@pollockAug 20.2010 — #I have a XML file that has to be updated daily with a PHP file.
How can I make the PHP file automatically load at a certain time during each day?
Would it be possible to use PHP in XML files? That would be a possible workaround.[/QUOTE]
Yes, It would be possible to use php in xml files. But If you will use php5 for Auto loading Classes Feature to Automatically Include PHP Files. Auto load is a new attribute introduced in PHP5.
@criterion9Aug 20.2010 — #I fixed it using the "bad" method: by using a 1x1 iframe with the php file that generates the XML file in it.[/QUOTE]
You could just use a simple include rather than messing about client side. As long as the PHP that writes the xml doesn't have any "echo" statements then nothing will be sent client side.
@criterion9Aug 20.2010 — #You can't "use php in it" inside an xml file (without making a big change on your server that could cause a lot more CPU/RAM usage when working with xml files). I was suggesting calling your xml creation file using an include rather than an iframe. As another option you could direct the application to a php script that outputs xml (depending on your aims this may or may not be possible).