Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file=file_get_contents('./data/today');
- $entries=explode('##START',$file);
- $i=1;
- foreach($entries as $entry){
- $lines=explode("\n", $entry);
- var_dump($lines); // Diagnostics!
- if($lines[1]!=''){
- echo('<h2 class=today id='.$i.'>'.$lines[1].' - '.$lines[2].'</h2>');
- if(!preg_match('/##NSH/',$lines[3])){
- array_shift($lines);
- array_shift($lines);
- array_shift($lines);
- echo('<p>');
- echo(implode('<br/>',$lines));
- echo('</p><br/>');
- }
- $i=$i+1;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment