开发者

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

开发者 https://www.devze.com 2023-01-17 08:49 出处:网络
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

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.

(I开发者_如何学运维m studying cakephp, trying to get a handle on whats called when in what order)


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.


Use xdebug's profiler to generate a cachegrind file.

0

精彩评论

暂无评论...
验证码 换一张
取 消