Add unicode interpretation; add example for cached VideoCardz feed

This commit is contained in:
2026-01-04 19:42:20 -05:00
parent 8b17888a83
commit 8f145fbdfd
3 changed files with 55 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
$command = "/usr/local/bin/backtone";
$argument = "BASE64ENCODEDINPUTXML";
$cacheFile = __DIR__ . "/cache/feed.xml";
$tempFile = "/tmp/feed.xml" . ".tmp";
// serve cached file immediately
header("Content-Type: application/xml; charset=utf-8");
readfile($cacheFile);
// trigger background regeneration
exec(escapeshellcmd($command) . " " . escapeshellarg($argument) . " > " . escapeshellarg($tempFile) . " 2>&1 && mv " . escapeshellarg($tempFile) . " " . escapeshellarg($cacheFile) . " &");
?>