gonzotek, could I have it link to a php file that generates the xml?
yungblood, it's loading the xml file on the server, because when I update the package it will update like it's suppose to. However if I change the xml without updating the package, then it doesn't update, as though the xml was cached until I upload a new package.
Sure, same exact concept. The added timestamp parameter on the request from the roku simply forces the box to pull from the server and ignore the previously cached data. If your php script spits out xml at the url http://server.com/xml_generator.php
, just add the timestamp to the request before the Roku sends it:
'dt is our date object
dt = CreateObject("roDateTime")
'mark sets dt to the current date/time
url = "http://server.com/xml_generator.php"
'AsSeconds returns the current date/time as the number of seconds from epoch (1/1/1970),
'ToStr converts the number of seconds to a string
url = url + "?ts=" + dt.AsSeconds().ToStr()
If you have other parameters (e.g. http://server.com/xmlgen.php?genre=comedy
) use an ampersand(vs. a question mark) to append additional params:
Note: I haven't tested the above script for accuracy, I'm not near a Roku right now.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com