files.select Test Start

setCredentials("USERNAME","API KEY"); $Client->setDebug($newdebuglevel); $Client->setSSLVerifyPeer(false); $Client->setSSLVerifyHost(false); $Client->return_type = "phpvals"; //forces return of page.get_one as php values $SiteName = "SITENAME"; ////////////test code ////////////code doesn't include error checking $fileobj = new FilesWikidotMeta($SiteName, $Client); $returnarray = array(); //change $cat to the page you want to list the files $cat = "CATEGORY:PAGENAME"; $fileobj->php_files_select($cat, $returnarray); foreach ($returnarray as $files){ echo "File->".$cat.": " . $files . "
";} ?>