Hello,
I made two extensions for PHP that Im want to share, but I do not really
know how to do it ;)
One is a profiling extension, called PhProfile:
-
works with zend optimizer and similar (as opposed to xdebug)
-
counts the number of function calls and the total send self time
for each function
-
usable either by calling phprofile_start(); at the beginning and
print_r(phprofile_get()) at the end of the script or
-
by setting up a dump-profile parameter in your php.ini (like
phprofile.quick_dump_key=prof) and appending the parameter prof to the url
(script.php?prof=1). If done, a html table with all function calls sorted by
self time is appended to the page.
-
If phprofile.quick_dump_mode is set to 2, the profiling data is
displayed in a popup
Source: http://mo.e-sport.com/phprofiler.html
The other is a embedded webserver SAPI, targeted at minimal PHP
implementations for administrative interfaces.
-
HTTP and HTTPS-Server
-
CLI-Support
-
Minimal resource usage
-
Makes it possible to build a 3MB php binary that can run
php-scripts and serves a webadmin interface.
Source: http://mo.e-sport.com/miniphp.html
Thanks for reading ;)
Moritz
Hello Moritz,
apply for a pecl account (http://php.net) and commit the stuff
as two projects. The minimal stuff might eventually be of interest
for testing.
best regards
marcus
Saturday, May 20, 2006, 11:16:28 PM, you wrote:
Hello,
I made two extensions for PHP that I?m want to share, but I do not really
know how to do it ;)
One is a profiling extension, called PhProfile:
works with zend optimizer and similar (as opposed to xdebug)
counts the number of function calls and the total send self time
for each function
usable either by calling phprofile_start(); at the beginning and
print_r(phprofile_get()) at the end of the script or
by setting up a ?dump-profile? parameter in your php.ini (like
phprofile.quick_dump_key=?prof?) and appending the parameter prof to the url
(script.php?prof=1). If done, a html table with all function calls sorted by
self time is appended to the page.
If phprofile.quick_dump_mode is set to ?2?, the profiling data is
displayed in a popup
The other is a embedded webserver SAPI, targeted at minimal PHP
implementations for administrative interfaces.
HTTP and HTTPS-Server
CLI-Support
Minimal resource usage
Makes it possible to build a 3MB php binary that can run
php-scripts and serves a webadmin interface.
Thanks for reading ;)
Moritz
Best regards,
Marcus
I made two extensions for PHP that Im want to share, but I do not
really know how to do it ;)One is a profiling extension, called PhProfile:
works with zend optimizer and similar (as opposed to xdebug)
Actually, it is not Xdebug which disallows it. I just don't have hacks
around the Zend Optimizer stuff.
Derick
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org