Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6368661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:42:14+00:00 2026-05-25T00:42:14+00:00

I’m going through a customer’s server, running crazy proprietary forum software (vBulletin) and even

  • 0

I’m going through a customer’s server, running crazy proprietary forum
software (vBulletin) and even worse SEO mods (vbseo). I cannot figure
out where the php code for a page is coming from! How to trace this
URL back to a PHP page:
http://www.example.com/forum/members/connie.html
I just joined a project with the code based on a heavily modified vBullitin install with the VBSEO plugin. This particular plugin is horrific spaghetti code with tens of include()s, .htaccess redirects and possibly .httpd.conf changes. Then it pulls strings from a database so I cannot even use grep to find the code file!

Is there any way to stack-trace PHP to log all the code that runs to produce a page? I have root access but I am not supposed to stop or restart the server. A simple list of the include() hierarchy of files that went into producing the page would suffice.

Note that I cannot use debug_backtrace because I don’t know where the code I’m looking for is! The debug_backtrace function is the exact opposite of what I need.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:42:15+00:00Added an answer on May 25, 2026 at 12:42 am

    Sounds like you need to step through it with Xdebug. Most common IDE’s support it such as Netbeans and PHPStorm.

    Resources:

    • Tracing PHP apps with Xdebug
    • Xdebug with Netbeans
    • Xdebug with PHPstorm (I recommend)
    • Xdebug with Eclipse
    • Chrome Xdebug extension (I recommend)
    • Firefox Xdebug plug-in

    In both the above mentioned IDE’s, you can CTRL+Click a function/method and it will take you to the line in the file where it is defined. You can also track usages for both functions and variables.

    Tracing code is built-in to xdebug. Here’s an example from Zend:

    <?php
    
      xdebug_start_trace('c:/data/fac.xt');
    
      print fac(7);
    
      function fac($x)
      {
        if (0 == $x) return 1;
        return $x * fac($x - 1);
      }
    
      xdebug_stop_trace();
    
    ?>
    

    Trace file output:

    TRACE START [2007-10-26 12:18:48]
        0.0068      53384     -> fac() C:\www\fac.php:5
        0.0069      53584       -> fac() C:\www\fac.php:10
        0.0069      53840         -> fac() C:\www\fac.php:10
        0.0070      54096           -> fac() C:\www\fac.php:10
        0.0070      54376             -> fac() C:\www\fac.php:10
        0.0071      54656               -> fac() C:\www\fac.php:10
        0.0072      54936                 -> fac() C:\www\fac.php:10
        0.0072      55216                   -> fac() C:\www\fac.php:10
        0.0073      55392     -> xdebug_stop_trace() C:\www\fac.php:13
        0.0237      55392
    TRACE END   [2007-10-26 12:18:48]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am trying to loop through a bunch of documents I have to put
We're building an app, our first using Rails 3, and we're having to build
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm making a simple page using Google Maps API 3. My first. One marker
I have some data like this: 1 2 3 4 5 9 2 6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.