Would like some help...

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
I'm looking through the phpmyadmin open source project for a function called PMA_mysql_query.

It's gotta be defined somewhere there as it's not a standard mysql function call.

I just need to see how it's defined.

What i've done so far was go to the root directory and

grep -ri 'PMA_mysql_query' * > b (to find all instances of that fuction call)

Even when I open up the file called b, it does not show me where it's being defined.

Would anyone have any ideas?

 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Your grep is a little suspect. What shell are you running this under? (I noticed that bash treats the ' as you would expect while the windows command line requires ").

I'd remove the quotes altogether, though, since you're looking for a single string. And also remove the * since you need to match it exactly once. Match it zero times and you should get every line in every file. Or was the * supposed to mean every file? In that case you need a space between it and your regex. Finally, you should add the n switch so that you know where in the file the match was found.