Skip to content

Instantly share code, notes, and snippets.

@eanticev
eanticev / get-page-list-for-folder.php
Created April 27, 2011 21:47
Pagelime Page Listing using FTP-XML
<?php
function pagesForFolder($folderName) {
$pages = array();
// this is the path to the sitemap XML that Pagelime publishes
$pages_path = "/cms-assets/xml/sitemap.xml";
// if the XML file exists, keep going
if (file_exists($_SERVER["DOCUMENT_ROOT"].$pages_path)) {
// initialize an XML DOM Document
$xml = new DOMDocument;