Skip to content

Commit

Permalink
Update get_pluto.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dtankdempse authored Nov 5, 2024
1 parent ccab8ca commit 333cf59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/get_pluto.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ function formatTime($timestamp) {
}

function saveFile($filename, $content) {
$filePath = $_SERVER['DOCUMENT_ROOT'] . $filename;
$filePath = __DIR__ . '/../pluto/' . basename($filename);
file_put_contents($filePath, $content);
echo "[SUCCESS] Saved file: {$filename}" . PHP_EOL;
echo "[SUCCESS] Saved file: {$filePath}" . PHP_EOL;
}

// Run the function to grab the EPG
Expand Down

0 comments on commit 333cf59

Please sign in to comment.