Originally Posted by patryk
i do have a question tho.
if 'Welcome_to_FTSC_Website-999999.jpg' always stays the same, then why search for it?
instead of first foreach loop you could just set your array
$output = array('basename' => 'Welcome_to_FTSC_Website-999999.jpg',
// 'dirname' => $_SERVER['DOCUMENT_ROOT'] . '/images/slide-info-bg',
'date' => 999999
Because that file is in that directory and it could be the middle file in the list, the top or the bottom. But when I display it to the public I want it to the first all the time and the rest shuffled.
also if you are not using dirname in the rest of your code then you can just comment it out. you don't need it in array anyways
the less code you have, the easier it is to find bugs afterwards
True, true! This is rather funny because a co-worker and myself were just making comments about the programmers at work that leave all this displays in their programs to show dates and other misc items. Granted this is mainframe operations and the public would never see such a thing but for the love of Pete it clutters up my command terminal! I totally get your point!
“No matter how slick the demo is in rehearsal, when you do it in front of a live audience, the probability of a flawless presentation is inversely proportional to the number of people watching, raised to the power of the amount of money involved.” ~ Mark Gibbs