Alvaro,
Thanks for the update and the updated code!  Just to clairify, when I 
say I will be using it, I mean for myself.....just to provide a way to 
easily retrieve documents or files that I need.
Plus I just enjoy new toys to play with.
This week I got to format a server and install nGenius and set up nearly 
180 routers on the thing......lots of fun!!  Will probably spend this 
weekend reading all the documentation I can get my hands on so that I 
can set up reports on the data....other than the canned reports.  So far 
at the new job I've gotten to play with:
Cisco AP 350's and 1200's.....upgrading them from VxWorks to first one 
then a second version of the IOS.
Working with Cisco Unity VOIP stuff to troubleshoot  phone 
issue.....Cisco's VOIP is neat!
Setting up a linux server to run FlowScan on....successfully I might 
add; personal triumph!
Setting up a W2K server and installing nGenius and setting up the probes 
and routers on the thing.
and lots of other stuff that is your standard day to day 
troubleshooting, putting out fire variety.
I think I must have adult A.D.D. or something......I LOVE having all 
this stuff to play with......I don't think I could ever do a repetitive job.
I'm still planning to write up a quick easy manner in which to install 
and set up FlowScan for everyone.  When I write it up, it will be 
written for relative newbies....as I am......so that someone that has 
just a little experience will be able to get things up and running.  
Something that's always made life difficult for me at my stage in the 
linux world is that a LOT of how to's are made with an assumption of a 
level of expertise that I have not yet attained and I want to write up 
something that a newbie can use.......those who are more adept can just 
skip over the things that they already know like the back of their hand. 
Is there anyone else here who has written up a howto for the linux 
community???  I would like to contact the people whose information I 
used......about three different documents......and get their permission 
to scavenge from their documents for inclusion into mine.   All that I 
am actually doing is putting things in my own words, adding in stuff 
where there were mistakes, and taking useful information from three 
different sources.  But I don't want anyone pissed at me for using their 
work in my document.
cha



Alvaro Zuniga wrote:

>Hi Cleve:
>The tutorials at the Zend site are very good and tell details that I
>have not read in any book. For instance, we have been told to turn off
>global variables because it is dangerous but never really told why. Here
>you will find out in glorious detail.
>
>There is also another nice article about database hacking that will blow
>your mind.
>
>One more thing, you mentioned you were going to use the code a posted
>yesterday. I received an email that the links were not indexing properly
>so here is the fix. I cannot believe I did not bother to check this
>before. I wish I could sort the lists but unfortunately it is not
>possible unless I use exec( ) and this is usually not available on most
>server to avoid hacking. The PHP function only reads the files as stored
>by the OS on the disk, hopefully this will change soon.
>
>take care,
>
><?php
>rec_index( );
>function rec_index( $path = '', $file = '' ) { 
>   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
>== '' ) {
>      if( $file ) chdir( $file );
>      $path .= $file . '/'; 
>      echo '<b>' . $file . '</b><br><blockquote>';
>      $handle = opendir( '.'  );
>      while( ( $file = readdir( $handle ) ) !== false ) rec_index(
>$path, $file );
>      chdir( '..' );
>      echo '</blockquote>';
>   }
>}
>?>
>
>
>On Thu, 2004-03-18 at 05:38, 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