[PHP] [a proactive example of learning by hacking] Re: [PHP] Getting queries from files FYI

2005-08-23 Thread Jochem Maas
Jay Blanchard wrote: [snip] I figured as much - I was think of adding an optional param so that you can optionally add such an extra limit e,g: cd /my/projects/stuff; php findqry.php --limit CHA ./results.txt [/snip] argv[] is always available indeed - I'll add something for that...

Re: [PHP] [a proactive example of learning by hacking] Re: [PHP] Getting queries from files FYI

2005-08-23 Thread Robin Vickery
On 8/23/05, Jochem Maas [EMAIL PROTECTED] wrote: Jay Blanchard wrote: Also, sweet move with the array_reverse... $fileParts = array_reverse(explode('.', $theFile)); if(php == $fileParts[0]){ ...it prevents problems with funky file names containing more than one