You are here: [a proactive example of learning by hacking] Re: [PHP] Getting queries from files FYI « PHP « IT news, forums, messages
[a proactive example of learning by hacking] Re: [PHP] Getting queries from files FYI

Posted by Jochem Maas on 08/23/05 18:38

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...

>
> 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
> period.

hihi, I was just being pragmatic ... most of my files are named
*.class.php, *.inc.php or *.funcs.php etc etc ... the script was running but
finding nothing ;-)

btw if my file names are funky I am too?

>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация