veraxtek Posted February 21, 2010 Share Posted February 21, 2010 I am sorry if I put this in the wrong place, but I am new. I use "firebug" a lot to locate lines of code (usually css) so that I can edit them. The problem I have (and I am just starting to learn php) is that when I locate a line of code that is from a *.php file, how do I find WHICH php file it is from and WHERE it is located? For example, I am trying to add some new form fields to the customer "account creation" form in Zen Cart. When I pull the page up in Firebug, I can find all the CSS info and even which css file the code is in, however... I can never find WHICH *.php file a line of code is located in. Is there some application I can use so that when I "view source" and I locate a line of code (such as a form field) I am told where to find that line of code? I can find CSS and HTML easy enough, but finding WHICH *.php file a line of code is located on is driving me crazy. I suppose it is due to the way PHP is parsed?? Any suggestions? Basically, I need something that will tell me WHICH *.php file a line of code is located on without having to seacrh every single .php file on the server. Thank YOU! Link to comment https://forums.phpfreaks.com/topic/192811-how-do-i-find-the-actual-php-file-a-line-of-code-is-parsed-to/ Share on other sites More sharing options...
Mchl Posted February 21, 2010 Share Posted February 21, 2010 From browser's point of view, it is impossible. You can try using FirePHP http://www.firephp.org/ but it requires you to put some debugging code into your script. Link to comment https://forums.phpfreaks.com/topic/192811-how-do-i-find-the-actual-php-file-a-line-of-code-is-parsed-to/#findComment-1015681 Share on other sites More sharing options...
teamatomic Posted February 21, 2010 Share Posted February 21, 2010 I can think of a very cludgy way. You can edit in an error,php will then tell you the page and be close to the line number. HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/192811-how-do-i-find-the-actual-php-file-a-line-of-code-is-parsed-to/#findComment-1015684 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.