09-02-2011, 09:28
|
#1
|
|
Cable Forum Team
Join Date: Dec 2007
Age: 43
Posts: 16,278
|
Firebug question
I'm using firebug to dissect a few CSS/Template problems..
Now firebug tells me which CSS files are in use but it doesn;t tell me which php files are also in use.. Is there a way of finding this out with firebug or is there a better alternative that gives me full css info and php
Thinking about it though I presume the php issue is more security that anything but it would save me hunting for example which PHP file has the table in I need to alter
ThanX Kymmy
|
|
|
09-02-2011, 12:27
|
#2
|
|
cf.geek
Join Date: Jun 2003
Location: Swindon
Age: 40
Services: Talk Talk BB & Phone, Humax Foxsat HDR Freesat+
Posts: 761
|
Re: Firebug question
Firebug or any other browser based (client side) debugger won't be able to tell you what PHP files are used on the page as all the PHP is done on the server before the HTML is sent to your broswer.
None of the PHP code is sent to your browser, only the resulting HTML.
You'd have to look at the PHP files on your server, and look to any includes or using (not sure if using is a PHP thing)
Mike
__________________
When there's always biscuits in the tin, where's the fun in biscuits?
|
|
|
09-02-2011, 12:32
|
#3
|
|
Cable Forum Team
Join Date: Dec 2007
Age: 43
Posts: 16,278
|
Re: Firebug question
Yep that's what I already do, but with the amount of includes these days it's hard to sometimes trace back
You'd think that there was some perhaps server side tool that you could use
|
|
|
09-02-2011, 13:13
|
#4
|
|
cf.geek
Join Date: Jul 2009
Location: Guildford, Surrey
Services: VM TVM HD, BBL, phone; BT phone; Freeview.
Posts: 750
|
Re: Firebug question
Don't know if it's of any use to you in php, but in ColdFusion I output an HTML comment at the start and end of every module, so a look at the source as it's seen by the browser tells me what has run and in what order.
|
|
|
09-02-2011, 13:25
|
#5
|
|
Cable Forum Team
Join Date: Dec 2007
Age: 43
Posts: 16,278
|
Re: Firebug question
No use at all in php mainly as already stated by MikeyB is that you never actually see the PHP source, instead you only ever see HTML output created by the source php files.
|
|
|
09-02-2011, 14:25
|
#6
|
|
cf.geek
Join Date: Jun 2003
Location: Swindon
Age: 40
Services: Talk Talk BB & Phone, Humax Foxsat HDR Freesat+
Posts: 761
|
Re: Firebug question
Pauls9 means is output an HTML comment at the start of your PHP include file, you'd see that in your browser.
<!-- This is myincluded.php -->
Don't know if adding one at the end would be of use, you'd generally see one after the other on the page.
But good idea, that'll come in handy for myself with ASP includes at work.
__________________
When there's always biscuits in the tin, where's the fun in biscuits?
|
|
|
09-02-2011, 14:42
|
#7
|
|
cf.geek
Join Date: Jul 2009
Location: Guildford, Surrey
Services: VM TVM HD, BBL, phone; BT phone; Freeview.
Posts: 750
|
Re: Firebug question
The end comment helps see how functions are nested.
<!-- start of outer process -->
... output from outer process (if any)
<!-- start of inner process -->
... output from inner process (if any)
<!-- end of inner process -->
... more output from outer process (if any)
<!-- end of outer process -->
Last edited by Pauls9; 09-02-2011 at 14:46.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 12:41.
|