I am really proud of this edition, which has been updated completely up to PHP 5.6 (the certification is currently up to 5.5), making it a great desk reference for everything new in PHP.
It includes 3 new chapters, and 2 new appendices, including one on the new debugger added in PHP 5.6, phpdbg — that’s over 80 pages of new content.
All of the new additions indicate which version they were added in, and based on a comprehensive scouring of the NEWS file, I am confident that anything worth mentioning as new in PHP has been included.
Additionally, I just announced a new project of mine, The Definitive Guide to PHP and MySQL. This is intended to be a comprehensive, in-depth book on vanilla PHP and MySQL.
It will cover everything from SQL basics, to MySQL Native Driver, making it ideal for all skill levels, and hopefully turning even the most novice user into an accomplished developer.
This book will be published via Leanpub, and I will start making it available as soon as I have some of the beginning chapters completed — currently it’s about 30-35% complete, but the majority of it is intended to end up towards the end of the book.
If you are interested in this book, please show your support by filling out the form — this is crucial for me to gauge interest and pricing.
Almost a year and a half ago we published the results of a framework survey on the PHP channel. The survey, while producing fewer entries than our IDE survey still provided us with valuable insight into our audience and the state of individual vs. team developers out there.
With Laravel 5 fresh out of the oven, Phalcon being kickstarted into full-time development, and others reaching a much anticipated maturity, it’s only natural we’re curious about your preferences - have they changed? Do they remain unbudged? Do you wish you could switch so hard you can taste it, but aren’t allowed to by your company? We’re interested in all these points and much more.
Continue reading %Best PHP Framework 2015 Survey%
- lots of changes in this one.
You can download the source code at: https://github.com/iliaal/php_excel/archive/1.0.1final.tar.gz
the Github repo is available at: https://github.com/iliaal/php_excel
Full ChangeLog is Below:
Continue reading "PHP Excel v1.0.1 Released"
Speaker: Rebecca McGrane @RebeccaMcGrane 30 seconds can end backaches, neck strain, eye fatigue carpal tunnel and other common pains of being a full time programmer, or as I lovingly call mine Code Monkey. In 10 minutes I will share everything you need to know to stop pain, improve your cardiovascular health, boost brain cells (AKA …
Speaker: Ian Littman @iansltx A 500 with blank output is scary. Though the magic of setting exception and error handlers, I’ll show you how to, using PHP’s core error handling functions, turn the White Screen of Death into a prettier, more informative output that’ll help you solve your app’s problems rather than freak out over …
Drupal 8 comes with many improvements over its predecessor we have grown to both love and hate. Next to prominent systems such as Views in core, configuration management or a useful translation service, there are also less known changes but that are equally important to know and use. One such improvement has been the cache API that solves many performance problems we have in Drupal 7.
In this article, I want to shine a bit of light over the new cache API. To this end, we are going to look at how we can use it in our custom modules as we are encouraged to do so much more in Drupal 8.
Additionally, I have prepared a little demonstration in the shape of a module you can install for testing the impact of the cache API. It’s a simple page that in its rendering logic makes an external API call (to a dummy JSON endpoint) and caches its results. The page then displays the actual time it takes for this to happen, contrasting the external call time vs. the cached version time.
The new cache API
The new cache API (with the default DatabaseBackend storage) is stored in multiple bins which map to tables that start with the prefix
cache_. When interacting with the cache, we always start by requesting a cache bin:
$cache = \Drupal::cache();
$cachewill be an instance of the
DatabaseBackendobject that represents the default bin (
cache_default). To request a particular bin we pass in the name in the constructor:
$render_cache = \Drupal::cache('render');
$render_cachewill represent the render cache bin (which is new in Drupal 8 and is supposed to improve render performance across the board).
Continue reading %Exploring the Cache API in Drupal 8%
Solving 'convert: delegate library support not built-in `white' (LCMS) @ warning/profile.c/ProfileImage/853'
Another quick fix documented here simple because it may help me (or someone else of course) in the future.
For a project I’m working on right now I need to crop an image using ImageMagick. We’re using the commandline instead of Imagick because we need to execute a custom command with a lot of extra options for this specific action, since the image will eventually be used for high-quality printing. As I was testing the command, tweaking the parameters, I eventually ended up with an error:
convert: delegate library support not built-in `white’ (LCMS) @ warning/profile.c/ProfileImage/853
It turns out this was very simply to solve: I used homebrew to install imagemagick, and I installed it simply by doing:
brew install imagemagick
Apparently, this is wrong. At least when you want to specify your own profile (for instance by using -profile /path/to/sRGB_IEC61966-2-1_black_scaled.icc). The solution? Install it —with-little-cms:
brew install imagemagick —with-little-cms
With thanks to clee704 on Github who came up with this solution.
Larry Garfield @Crell
- Larry Garfield
- Wisdom of the ElePHPant
- Refactor Chicago
- Chicago PHP User Group
- Chicago Advanced Drupal User Group