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

Larvel News:
Laravel Sydney – Live with Jeffrey Way
Jul 15, 2015 @ 08:56:15

The Laravel News site has posted a video from a recent Laravel Sydney meeting featuring Jeffrey Way, owner and operator of the popular Laracasts screencast tutorial service.

The Laravel Sydney user group had a special guest in their latest meeting. At 5:30am, his time, Jeffrey Way complete with blood-shot eyes and a massive coffee jar did a live question and answer interview with the group led by Ben Corlett.

You can watch the video either through the in-page player or by heading over to YouTube to watch it there directly.

tagged: laravelsydney jeffereyway laracasts video interview question answer meetup framework

Link: https://laravel-news.com/2015/07/laravel-sydney-live-with-jeffrey-way/

Derick Rethans:
Questions from the Field: Should I Escape My Input, And If So, How?
Jan 27, 2015 @ 09:22:04

In his latest post Derick Rethans shares his answer to a question he was asked at a recent PHP conference regarding the escaping of input before use in a MongoDB query.

At last weekend's PHP Benelux I gave a tutorial titled "From SQL to NoSQL". Large parts of the tutorial covered using MongoDB—how to use it from PHP, schema design, etc. I ran a little short of time, and since then I've been getting some questions. One of them being: "Should I escape my input, and if so, how?". Instead of trying to cram my answer in 140 characters on Twitter, I thought it'd be wise to reply with this blog post. The short answer is: yes, you do need to escape.

He uses the rest of the post to get into the longer answer, a bit more detail about why you should escape and what kinds of things can be done. He points out that, because of how MongoDB queries are created, SQL injection is much more difficult. He does remind you that superglobals can also be used to send arrays too which could lead to unexpected data input. He gives an example of how this would work and why it would be a problem.

So although MongoDB's query language does not require you to build strings, and hence "escape" input, it is required that you either make sure that the data is of the correct data type.
tagged: escape input mongodb phpbnl15 question answer datatype

Link: http://derickrethans.nl/escape-input.html

Mathias Noback:
Some questions about the command bus
Jan 12, 2015 @ 09:46:46

Mathias Noback has continued his series looking at the use of command busses in PHP applications. In this third part of his series, he answers some questions that have been asked by his own readers.

So far we've had three posts in this series about commands, events and their corresponding buses and handlers: a wave of command buses, responsibilities of the command bus, from commands to events. Now I'd like to take the time to answer some of the very interesting questions that by readers.

He answers questions about:

  • The difference between commands and events
  • Disadvantages of using a command bus
  • The command as constructor argument
  • How to return a value from the command bus
  • Could commands handle themselves?

Each question comes with a portion of the question from the original author, an explanation and some code where needed to illustrate his point.

tagged: commandbus question answer reader events disadvantages return handling

Link: http://php-and-symfony.matthiasnoback.nl/2015/01/some-questions-about-the-command-bus/

Phil Sturgeon:
Why some people hate PHP
Dec 03, 2012 @ 13:22:19

Phil Sturgeon has reposted an answer he gave in response to this Quroa entry about why people "think PHP sucks".

There are a lot of reasons people "hate" PHP, or at least look down on it. Some of them are founded, some are not, and some of them are circumstantial.

He mentions seven of the reasons people commonly give for not liking PHP:

  • "Inconsistent haystack / needle"
  • PHP is a HTML file, with logic
  • No standards
  • Lack of Quality Packages
  • Misconception (about the current PHP features)
  • You were doing it wrong
  • Elitism ("not using PHP is cool")

There's even more discussion happening on the subject in this reddit post with thoughts from both PHP and non-PHP developers.

tagged: opinion language answer sucks philsturgeon


Zend Developer Zone:
Webinar - New in Zend Framework 1.10!
Mar 15, 2010 @ 08:48:55

If you've been looking for a good way to get introduced to the latest version of the Zend Framework but didn't know where to start, you might grab a spot in this upcoming webinar from Zend about the Zend Framework 1.10.

Zend Framework 1.10 sports a ton of new features, as well as completely revamped online documentation. In this webinar, Matthew Weier O'Phinney, Framework Project Lead, and Ralph Schindler, Zend Framework Software Engineer, will present a synopsis of the new features, discuss the new online documentation system and how it's built, and answer your questions about the new release.

The webinar will be happening this coming Wednesday, March 17th, at 9am PST and will be happening via WebEx. Matthew Weier O'Phinney and Ralph Schindler will be talk about the new features, current functionality that was enhanced and will answer your burning questions. To reserve your spot, head over to the registration page and enter your info.

tagged: zendframework webinar feature question answer


Brandon Savage's Blog:
PHP Interview Questions And Answers
Nov 16, 2009 @ 09:46:06

Following some of his recent experience in finding a new source of employment, Brandon Savage has shared some of the common questions he was given during his search for a PHP development position.

There are a large number of PHPers looking for jobs right now. After having just gone through the process myself, I wanted to put together some of the most common PHP interview questions. These questions are all non-technical, but do represent the soft side of PHP interviewing. I cannot help you if you don’t have the technical skills to answer the technical questions, but answering these questions correctly is often the key to making or breaking your chances with an interviewer who otherwise has fine technical candidates.

Questions he was asked included "How did you get into PHP?", "Where do you ultimately want to be in life?" and the more random "How many gas stations are there in Los Angeles?". For each, Brandon recommends a few tips on dealing with them and includes some possible tactics on answering.

tagged: interview question answer opinion


Mike Bernat's Blog:
How SHOULD developers answer questions?
Oct 28, 2009 @ 12:31:43

As a continuation from his previous post ("How do GOOD developers ask questions?") Mike Bernat is back with this suggestion on how should good developers answer questions.

When given a very specific question that you know has a very specific answer, your first reaction might be to blurt out the answer and be done with it. However, I like to go the extra step and ask what they've tried so far or what research they've done. I like to show them how to arrive at the answer on their own as well as provide the solution.

He suggests that it's more about the thinking behind the answer than just reciting something from memory. Anyone can memorize facts and terms (and solutions, for that matter) but a good developer will be able to explain why he came to that conclusion.

tagged: developer opinion answer question


Christian Stocker's Blog:
Upload Progress Meter - Common issues and some answers
Mar 31, 2009 @ 09:31:49

On the Liip blog today Christian Stocker has posted about a few common issues developers seem to have with the upload progress meter extension and a few answers to help them out.

After I released uploadprogress 1.0.0 some days ago and finally declared it as stable, it's time to write that blogpost about some of the limitations and caveats one has to know.

The post links to a demo and answers a few different questions on issues such as:

  • Running it on other modules than mod_php on Apache ( like fastcgi)
  • Checking if files are too big
  • The position and content of UPLOAD_IDENTIFIER within the form is important
  • Why not use $_SESSION for the info?
  • It segfaults, when I don't include UPLOAD_IDENTIFIER

See the PECL page for the extension for more information.

tagged: upload progress meter pecl question answer common issue demo


Brandon Savage's Blog:
Scaling Up: Baby Steps (a.k.a. Asking The Right Questions)
Feb 16, 2009 @ 10:29:10

In this new post to his (newly WordPress-ed) blog Brandon Savage looks at a consideration most developers think of too late and when their applications are already starting to bulge around the edges - scalability. It's the first part of this series.

Before we actually get started hacking on our code, let's make sure we've got the right questions asked and answered. We're going to need some resources, the help of others in our organization, and probably some understanding of the current system structure before we're successful in our goal. Some of these questions may seem mundane, and others will be extremely important. But we must ask and receive answers to all of them, so let's get started.

The questions touch on the topics of bottleneck sources, why scalability of the application is needed and what other services are out there that could do what I need without having to roll my own.

tagged: scaling application question bottleneck reason service answer


Symfony Blog:
Questions and Answers about "Practical symfony" book
Feb 03, 2009 @ 12:08:18

The symfony blog has a few questions and answers posted about their "Practical symfony" book for those inquiring minds out there.

Questions include:

  • Should I buy it? (who is it targeted towards)
  • Will it get old too soon?
  • Should I wait to the new edition of the book?
  • Are the contents of the book full color or b&w?
  • Should I buy the book or print The definitive guide to symfony 1.2?

The book can be ordered in three versions - Propel (English), Doctrine (English) and Propel (Spanish).

tagged: question answer practical symfony book