jason
jason

Reputation: 4801

Is there a way to view php code after the includes and before its parsed?

I may have some gaps in my understanding how it works, but if its like this :

client -> apache -> php (brings together all the includes(...) etc..) -> php parses the complete page -> apache -> client

then I would like to know how to see the complete page before its parsed.

(Im studying cakephp, trying to get a handle on whats called when in what order)

Upvotes: 0

Views: 90

Answers (2)

racerror
racerror

Reputation: 1629

Use xdebug's profiler to generate a cachegrind file.

Upvotes: 0

naivists
naivists

Reputation: 33551

I would not be so sure that the "brings together all the includes" step ever happens. Since include() can be called in conditional blocks (something like if ($admin==1) include("admin.php"), it means that the interpreter is already running and interpreting the commands.

Upvotes: 1

Related Questions