Jump to content

How do I find the actual *.php file a line of code is parsed to?


veraxtek

Recommended Posts

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.