php opcodes
Posted: Tue Feb 05, 2008 7:20 pm
Can someone give me some pretty specific instructions on how to view php opcodes for a page request? I'm not experienced with php internals.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
I su'd as root to install it, but when I execute a script, only the html is displayed.t's not hard to use this extension, but it might not work with all PHP versions. Here are the instructions to get it to work:
1. Unpack the tarball: tar -xzf vld-0.8.0.tgz.
2. cd into the newly created directory.
3. Create the configure script: phpize
4. Now run "./configure" followed by "make install".
That's it, if you now run PHP from the command line and add the -dvld.active=1 parameter VLD will spit out the opcodes:
php -dvld.active=1 program.php