<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 12, 2013 at 10:01 PM, Marc Delisle <span dir="ltr"><<a href="mailto:marc@infomarc.info" target="_blank">marc@infomarc.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Supun Nakandala a écrit :<br>
<div class="im">> On Wed, Jun 12, 2013 at 9:05 PM, Supun Nakandala<br>
> <<a href="mailto:supun.nakandala@gmail.com">supun.nakandala@gmail.com</a>>wrote:<br>
><br>
>><br>
>><br>
>> On Wed, Jun 12, 2013 at 8:56 PM, Marc Delisle <<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>> wrote:<br>
>><br>
>>> Marc Delisle a écrit :<br>
>>>> Supun Nakandala a écrit :<br>
>>>>> Hi,<br>
>>>>> I am refactoring sql.php and I want to rename the $_POST['fields'][...]<br>
>>>>> variables such that they better reflect their intended use. I was<br>
>>> trying to<br>
>>>>> find out the origin of these variables and I was not successful. I<br>
>>> would<br>
>>>>> appreciate if someone can help me to find the source and the rationale<br>
>>> of<br>
>>>>> these variables.<br>
>>>> Hi Supun,<br>
>>>> do you know the "git blame" command? This will show you the commit and<br>
>>>> author by line of code.<br>
>>>><br>
>>> Also, github, via the Files tab, permits you to pick one file and enter<br>
>>> the Blame view for it.<br>
>>><br>
>>>    Now I am getting familiar with that feature.<br>
>>    Thanks<br>
>><br>
>>>  --<br>
>>> Marc Delisle<br>
>>> <a href="http://infomarc.info" target="_blank">http://infomarc.info</a><br>
>><br>
><br>
</div><div class="im">> Hi Marc,<br>
> According to what I understood git blame allows me to find the respective<br>
> contributor for each line of code. But what I am interested about is to<br>
> find the place in code where these $_POST['fields'][...] variables are set.<br>
> How can I find that ?. Please correct me if I am wrong.<br>
<br>
</div>This is more tricky. I basically see two ways:<br>
<br>
1. Looking for a string in your editor when you know the file, or<br>
looking via "git grep" when you don't know which file<br>
<br>
2. Using an IDE like NetBeans where you can track the execution path at<br>
the PHP level and set watchpoints (but I'm not sure about watching<br>
$_POST variables)<br>
<br>
In this case, since it comes from a POST, most likely it's located in a<br>
form so you can start by searching for forms in sql.php.<br>
<div class="HOEnZb"><div class="h5"><br>
<br></div></div></blockquote><div style>I'll try them. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
--<br>
Marc Delisle<br>
<a href="http://infomarc.info" target="_blank">http://infomarc.info</a><br>
<br>
------------------------------------------------------------------------------<br>
This SF.net email is sponsored by Windows:<br>
<br>
Build for Windows Store.<br>
<br>
<a href="http://p.sf.net/sfu/windows-dev2dev" target="_blank">http://p.sf.net/sfu/windows-dev2dev</a><br>
_______________________________________________<br>
Phpmyadmin-devel mailing list<br>
<a href="mailto:Phpmyadmin-devel@lists.sourceforge.net">Phpmyadmin-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thank you<br>Supun Nakandala<br>Dept. Computer Science and Engineering<br>University of Moratuwa<br>
</div></div>