OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
education-podcasts
/
includes
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/31/2025 06:36:42 AM
rwxr-xr-x
📄
db.php
326 bytes
03/31/2025 06:36:42 AM
rw-r--r--
📄
fetchPodcasts.php
412 bytes
03/31/2025 06:36:42 AM
rw-r--r--
📄
opmlParser.php
508 bytes
03/31/2025 06:36:42 AM
rw-r--r--
Editing: opmlParser.php
Close
<?php include "db.php"; function parseOPML($filename, $conn) { $xml = simplexml_load_file($filename); foreach ($xml->body->outline as $outline) { $title = (string)$outline['text']; $url = (string)$outline['xmlUrl']; // Insert into DB if not already present $stmt = $conn->prepare("INSERT IGNORE INTO rss_feeds (title, url) VALUES (?, ?)"); $stmt->bind_param("ss", $title, $url); $stmt->execute(); } return true; } ?>