News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Michael Kimsal:
Is your code portable to subfolders?
September 02, 2014 @ 09:12:53

In a quick new post to his site Michael Kimsal asks an interesting question that some PHP developers don't think about in the course of their development: "Is your code portable to subfolders?.

Have been dealing with a couple of PHP projects recently which have been a far bigger pain in the backside than I anticipated, and both had some of the same stumbling blocks. In both cases, and in other projects I've seen, there's a huge assumption that the code will be run from the root of a domain, and all url and routing management have this assumption baked in to everything they touch. What's the answer?

Some projects just suggest making a new virtual host in the web server configuration and moving on, but this isn't always a real possibility for some projects. In some recent experience, he's found several of the major PHP frameworks assume this kind of setup. He mentions a Java framework, Spring, that allows for this kind of redirect and wonders why it's not that easy in something like Slim.

Maybe try grabbing your own code sometime and reinstalling it in a 'non-traditional' way, and see how many assumptions you've baked in are really necessary, vs just using defaults.
0 comments voice your opinion now!
subfolder project portable framework

Link: http://michaelkimsal.com/blog/is-your-code-portable-to-subfolders/

Community News:
Packagist Latest Releases for 09.02.2014
September 02, 2014 @ 08:09:39

Recent releases from the Packagist:

Community News:
Latest PECL Releases for 09.02.2014
September 02, 2014 @ 07:07:52

Latest PECL Releases:
  • timezonedb 2014.7 Updated to version 2014.7 (2014g)

  • pecl_http 2.1.0 - Removed port and scheme guessing of httpUrl for portability * Fixed PHP-5.3 compatibility * Fixed PHP-5.4 compatibility * Fixed possible bus error on shutdown when using events * Fixed sovereignty of clients when using events * Fixed a possible crash with httpEncodingStreamDechunk::decode($unencoded) * Fixed a leak in httpClientCurl options * Fixed bug #67733 (Compile error with libevent 2.x) + Added RFC5987 support in httpParams + Improved synthetic HTTP message parsing performace for ~20% + Added request options if libcurl has builtin c-ares support: dns_interface, dns_local_ip4, dns_local_ip6 (all libcurl >= 7.33.0) + Added request options: expect_100_timeout (libcurl >= 7.36.0), tcp_nodelay + Added transfer info: curlcode, tls_session (libcurl >= 7.34.0), only available during transfer

  • igbinary 1.2.1 - Compatible with PHP 5.2 - 5.6

  • igbinary 1.2.0 - PECL bug #22614, igbinary_unserialize(FALSE) must return FALSE - PHP bug #54662, unserializing nested objects cause crash - Other fixes

0 comments voice your opinion now!



SitePoint PHP Blog:
Single Page App with Laravel and EmberJS
September 01, 2014 @ 15:28:33

The SitePoint PHP blog has posted the fourth part in their "REST App with Laravel and EmberJS" series today. In this latest tutorial they focus in on the frontend and investigate how Ember works how to get started in your application.

In this part, we will see how Ember works, how to use Ember Data and how to build something simple with it. Router, Route, Model, Template and Store are some of the concepts of Ember. I'm not going to explain every one of those, so if you feel stuck, use the documentation.

They dive right into the code, getting a simple Ember "App" instance set up and configured. They add in a REST adapter to connect it to the backend API and lay out a few of the routes. They then create the models to represent the data and link each to a route. Next they get into views and creating the interface and frontend markup (using Handlebars templating). A gif is included showing the results and how things should look at this point.

0 comments voice your opinion now!
tutorial series emberjs part4 laravel rest api

Link: http://www.sitepoint.com/single-page-app-laravel-emberjs/

Anthony Ferrara:
Introducing Recki-CT
September 01, 2014 @ 10:56:46

Anthony Ferrara has introduced an interesting new tool in his most recent post, a compiler toolkit for PHP: Recki-CT.

Over 1.5 years ago, I introduced PHPPHP to the world. It was the first implementation of the PHP language written in PHP itself. But PHPPHP suffered from a few problems which relegated it to toy status (such as performance). Today, I get to introduce you to another implementation of PHP, written in PHP. But this one is no toy. This one... This one is fun...

He goes on to introduce the tool, pointing out what it is (and isn't) and how it compiles the PHP down into machine code. He covers the difference between it and things like HHVM and some benchmarks on how fast the resulting code performs. He also gives some thanks to people who helped him along the way (as well as sone of the projects it relies on). If you're interested in finding out more, check out the project's GitHub page for complete info and the latest version.

0 comments voice your opinion now!
reckict project compile language phpphp

Link: http://blog.ircmaxell.com/2014/08/introducing-recki-ct.html

Stanislav Malyshev:
PHP 5.4 (Looking Back) & 5.6 (Looking Forward)
September 01, 2014 @ 09:42:13

In two new posts to his site Stanislav Malyshev takes a look both forward and back at the PHP language, where it came from in the 5.4 version and ahead into the just released 5.6 version discussing the good, bad and road ahead.

With 5.6.0 having been released and 5.4 branch nearing its well-earned retirement in security-fixes-only status I decided to try and revive this blog. As the last post before the long hiatus was about the release of the 5.4, I think it makes sense to look back and see how 5.4 has been doing so far.

Having taken a look in the past, now it's time to look into the future, namely 5.6 (PHP 7 is the future future, we'll get there eventually). So I'd like to make some predictions of what would work well and not so well and then see if it would make sense in two years or turn out completely wrong.

In the look back at 5.4 he talks about some of the good (the release process, $this in closures) and some of the "not so good" including traits and the overall adoption rate. He also includes a few "don't know" items such as the overall performance and the inclusion of the mysqlnd driver. In the look forward he talks about the impact of things like constant expressions, phpdbg and function/constant importing (for better or for worse). He also briefly mentions two hurdles to the adoption of 5.6: OpenSSL becoming more strict and the overall adoption rate.

0 comments voice your opinion now!
lookforward lookback opinion version good bad

Link: http://php100.wordpress.com/2014/08/30/php-5-6-looking-forward/

Community News:
Packagist Latest Releases for 09.01.2014
September 01, 2014 @ 08:09:30

Recent releases from the Packagist:

Community News:
Packagist Latest Releases for 08.31.2014
August 31, 2014 @ 08:01:53

Recent releases from the Packagist:

Community News:
Packagist Latest Releases for 08.30.2014
August 30, 2014 @ 08:08:51

Recent releases from the Packagist:

Matthew Weier O'Phinney:
Deployment with Zend Server (Part 2 of 8)
August 29, 2014 @ 11:55:04

Matthew Weier O'Phinney has posted the second part of his series with some tips around application deployment with Zend Server. In this latest post he shares his second tip related to recurring jobs.

This is the second in a series of eight posts detailing tips on deploying to Zend Server.The previous post in the series detailed getting started with zf-deploy to create ZPK packages to deploy to Zend Server. Today, I'm looking at how to created scheduled/recurring jobs using Zend Server's Job Queue; think of this as application-level cronjobs.

Instead of running the jobs as cron tasks (which may or may not be installed if there's multiple servers), he opts for a software-based approach. He walks you through the use of the Zend Server Job Queue to create a simple reoccurring execution to run a PHP script at a certain time. He includes some code examples with one showing just the scheduling of a job and the other showing how to detach previous jobs and add only the new ones that weren't scheduled before.

0 comments voice your opinion now!
deployment zendserver tip series part2 cron reoccurring jobs

Link: http://mwop.net/blog/2014-08-28-zend-server-deployment-part-2.html


Community Events





Don't see your event here?
Let us know!


wordpress threedevsandamaybe introduction configure list podcast code project bugfix framework application library api laravel language release developer series community interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework