background preloader

Dev

Facebook Twitter

Interaction Design Foundation. Dbv.php: Database version control, made easy! Xdebug Cachegrind and MAMP Pro on Mac OSX – Michael Grace. Are you running MAMP on OSX? Want to profile your PHP code with Xdebug? It’s easy and here are the steps. How to run Xdebug on Mac OSX using MAMP 1 Start MAMP 2 Edit php.ini template file through MAMP to enable the extension. 3 Edit bottom of php.ini template file so that it ends up looking like if you want profile output [xdebug] zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" xdebug.profiler_enable = 1 xdebug.profiler_output_dir = "/tmp" ; DONT REMOVE: MAMP PRO php5.3.6.ini template compatibility version: 1 If you don’t want profile output and just want xdebug running then use [xdebug] zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" xdebug.profiler_enable = 0 xdebug.profiler_output_dir = "/tmp" ; DONT REMOVE: MAMP PRO php5.3.6.ini template compatibility version: 1 Now when you have errors, if they are sent to standard out, you will see something like this My php.ini file:

The Need for Speed: Profiling PHP with XHProf and XHGui. While patience is a virtue, it’s generally not one inherent to today’s society when it comes to waiting for web pages to load. Studies conducted by big names in technology like Google, Microsoft, and Yahoo! Have shown that even sub-second differences in page load time can have significant impact on conversions. If that’s not enough reason, Google incorporated page load time into their search rankings back in April 2010, so it also impacts SEO. A number of factors can affect page load time: network latency, web server configuration or load, use of persistent storage, caching or lack thereof, and application response time. Profiling is the process of measuring the execution time of each function or method call involved in servicing a single page request.

Profiling a PHP script generally requires installing a PHP extension. Installing XHProf XHProf is available via PECL, so installing it is pretty easy. The raw profiling data generated by XHProf isn’t easily consumed at a glance. In Closing. PhotoShow – Galerie photo PHP. PhotoShow – Galerie photo PHP Mettre toutes ses photos sur Flickr ou Picasa, c'est sympa, mais risqué si demain le service ferme ou si vous vous faites supprimer / pirater / censurer votre compte. Du coup, si vous avez une machine chez vous, qui est équipé d'un serveur web et de PHP5, pensez à PhotoShow. PhotoShow est une galerie photo qui fonctionne sans base de données. Tout est géré sous forme de fichier et utilise uniquement du PHP et du JavaScript (JQuery...etc.). Et si vous êtes plusieurs à utiliser PhotoShow, pas de souci puisqu'il sait parfaitement gérer les permissions. Bravo Thibaud ! Vous avez aimé cet article ? Laravel - A Clean & Classy PHP Framework.

Pocket : Weevely – Un bon petit shell PHP.