Alan,
Thanks!!!   Now I know what I'll be doing all weekend!!!!!
cha

alan wrote:

> Try Big Blue:
> http://www-106.ibm.com/developerworks/linux/library/l-php.html
> http://www-106.ibm.com/developerworks/linux/edu/l-dw-linuxphp-i.html
> http://www-106.ibm.com/developerworks/web/edu/wa-dw-waphp-i.html
> http://www-106.ibm.com/developerworks/web/edu/wa-dw-waeffphp-i.html
>
> Some of these you need to sign up for but they don't spam you. I get 
> about one email a month, and there's usually something there I find 
> interesting.
>
> HTH,
>
> alan
>
>
> Cleve Allison wrote:
>
>> Alvaro,
>> for those of us who aren't programmers but who are technically 
>> talented enough to go to Barnes and Nobles, purchase a book and by 
>> the end of the weekend have a "duct taped and bubble gum" solution 
>> working.....can you provide a description of what your script does? 
>> Also, if there is a PHP tutorial website that someone knows of that 
>> is so good that I shouldn't bother with B&N then please share the 
>> wealth, my brother!!!!
>> thanks,
>> cha
>>
>>
>>
>> Alvaro Zuniga wrote:
>>
>>> Hi Everyone:
>>> A fried visited me today and we had a few drinks. He listened to 
>>> some of
>>> my music and asked me if I could possibly display it online for him to
>>> download. After he left, I wrote this algorithm that is very short
>>> thanks to the power of recursion. I just wanted to shae it.
>>>
>>> For the computer scientists out there, yes I know about the 
>>> recursion so
>>> show your alternative :-)
>>>
>>> enjoy,
>>>
>>> Alvaro Zuniga
>>>
>>> <?php
>>> global $path;
>>> $path = '';
>>> rec_index( $file );
>>> function rec_index( $file ) {   global $path;
>>>   if( is_file( $file ) ) {      $mp3 = explode( '.', $file );
>>>      if( $mp3[count( $mp3 ) - 1] == 'mp3' ) {
>>>         echo '<a href="' . $path . $file . '">' . $file . '</a><br>';
>>>      }
>>>   }
>>>   elseif( ( is_dir( $file ) && $file != '.' && $file != '..' ) || $file
>>> == '' ) {
>>>      $path .= $file . '/';      if( $file ) chdir( $file );
>>>      echo '<b>' . $file . '</b><br><blockquote>';
>>>      $handle = opendir( '.'  );
>>>      while( ( $file = readdir( $handle ) ) !== false ) {
>>>         rec_index( $file );
>>>      }
>>>      chdir( '..' );
>>>      echo '</blockquote>';
>>>   }
>>> }
>>> ?>
>>>
>>>
>>> _______________________________________________
>>> General mailing list
>>> [email protected]
>>> http://brlug.net/mailman/listinfo/general_brlug.net
>>>
>>>  
>>>
>>
>>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://brlug.net/mailman/listinfo/general_brlug.net
>


-- 
When a distinguished but elderly scientist states that something is possible, 
he is almost certainly right. When he states that something is impossible, he 
is very probably wrong.
Arthur C. Clarke, Profiles of the Future, 1962

Reply via email to