本文整理汇总了PHP中fs::process_file方法的典型用法代码示例。如果您正苦于以下问题:PHP fs::process_file方法的具体用法?PHP fs::process_file怎么用?PHP fs::process_file使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fs
的用法示例。
在下文中一共展示了fs::process_file方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xml
<?
// The guidelines for this application was for a very simple and quick application to manage an iTunes podcast
// for the non-profit organization Global Healing. Application was made to primary user's specifications.
header('Content-type: application/rss+xml');
require_once('include/xml.class.php');
require_once('include/fs.class.php');
$xml = new xml();
print $xml->head();
$live_dir = 'live';
$fs = new fs();
$filenames = $fs->get_titles($live_dir);
foreach ($filenames as $file){
$item = $fs->process_file("$live_dir/$file");
print $xml->item($item);
}
print $xml->foot();
?>