I am using the following code to populate a play list in the frontend...

$lines = file('modules/mod_flowplay/edit/file.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($lines as $line)
{
    list($filename, $title, $time) = explode('-', $line);
    echo "<a href='$path/$filename'> $title <br /><em>$time</em>";
} 

It reads the file because it shows the first clip and only the first one... after that it doesn't show a thing...

I have a Vert menu and a horizontal menu I use the code for both menus... works great in the Vertical, shows everything... the horizontal is where the problem is...

suggestions?

Many Thanks! 🆒

    can you post the first 5 lines form the file

      </a>
      
      <div id="playlist_wrap">
      
      <a class="prevPage"></a>
      
      <div id="pl"> 
      
      	<div class="entries">
      
      <?php
      $lines = file('modules/mod_flowplay/edit/file.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
      foreach($lines as $line)
      {
          list($filename, $title, $time) = explode('-', $line);
          echo "<a href='$path/$filename'> $title <br /><em>$time</em>";
      } 
      ?>		
      
      	</div>
      
      </div>
      
      <a class="nextPage"></a>
      
      </div>
      
      <br clear="all" />

      There is it... lol

        actully i was interested in file.txt

          LOL sorry here it is ...

          ateam.flv-Ateam-2:20 Min
          blonde.flv-John-2:30 Min
          holland.flv-holland-3:30 Min
          jimmy.flv-Jimmy-2:30 MIn
          curly.flv-Curly-3:30 Min

            when i use your code and file i get all the files listed as expected.

            try just the 5 rather than the full file, and see if the problem is resolved.

              Interesting now I wonder if perhaps it's a CSS issue.. since I have a css file also to make things look nice.. LOL

                cowboysdude;10915764 wrote:

                Interesting now I wonder if perhaps it's a CSS issue.. since I have a css file also to make things look nice.. LOL

                You are correct it is working and I am correct it's a CSS issue!! Thank you for all the help, it did help me track this down!!

                  Write a Reply...