files.get_meta 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 //common example start $fileobj = new FilesWikidotMeta($SiteName, $Client); $returnarray = array(); echo "

files.get_meta example



"; //change $PageName to the page that contains the files you want information $PageName = "CATEGORY:PAGENAME"; $fileobj->setPage($PageName); //add file names to the $Filearray array to match the files of interest $Filearray = array( "FILE1.EXT", "FILE2.EXT", "FILE2.EXT", etc...); $fileobj->php_files_get_meta($Filearray, $returnarray); foreach ($returnarray as $key=>$file){ foreach($file as $dkey=>$fdat){ echo $key.": ".$dkey."=>".$fdat."
";}} ?>