PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 2581 to 2600 of 6889

Deleting the View and Controller..

Deleting the View and Controller..
Article originally from rooJSolutions blog This is NOT a post for people who do not use MVC, Please delete your code, and write it properly.. Anyway, as anybody who has used or written a reasonable framework in PHP knows, MVC is pretty much the golden rule for implementation. There are a dozen frameworks out their based around the principles, with different levels of complexity.My own framework was designed around those principles, and for many years worked perfectly for those classic display a crap...

Devis Lucato's Blog: Select: Inversion of Control

Devis Lucato's Blog: Select: Inversion of Control
In a recent post to his blog Devis Lucato introduces the "Inversion of Control" design pattern and shares an implementation he's created as an illustration - a Service Locator called Select.[In a Service Locator] all the dependencies are provided by a builder, which serves as a registry of dependencies and/or service definitions. The service locator knows how to instantiate each dependency. Such service exposes methods like 'getMailer()', 'getLogger()' etc. A service locator centralises the configuration...

WorkingSoftware Blog: Your templating engine sucks & everything you've written is spaghetti code

WorkingSoftware Blog: Your templating engine sucks & everything you've written is spaghetti code
In a bit of a ranting post on the WorkingSoftware.com.au blog Iain Dooley shares his opinion about most of the code he's seen, specifically related to templating engines: "Your templating engine sucks and everything you have ever written is spaghetti code (yes, you)".Templating is a real hot button in the web development community. [...] The high horses that people usually get on are that all too familiar TLA MVC (Model/View/Controller) architecture and "separation of presentation and business logic"....

DZone.com: Writing Better PHP: Three Guides

DZone.com: Writing Better PHP: Three Guides
On DZone.com today John Esposito has posted about three guides that want to help you improve your PHP development skills (including a forum post and two articles).Sometimes, then, improving your generic 'programming brain' will help you improve your facility with a particular language. At other times, it's more important to learn the nuances of a language, paying close attention to the kind of applications the language is used for. [...] For improving your PHP, then, you can do two things: become a...

Ibuildings techPortal: DPC Radio: Profiling PHP Applications

Ibuildings techPortal: DPC Radio: Profiling PHP Applications
The Ibuildings techPortal has posted the latest episode of their recordings from this year's Dutch PHP Conference - Derick Rethans' talk "Profiling PHP Applications".The web is full of useful advice focussed on pushing out the last bit of performance of your code. They mention trivial changes. like changing every occurrence of print with echo even suggesting to use for instead of foreach. These optimisations help, but you are not going to notice it unless they're in a tight loop with many iterations. It...

Chris Hartjes' Blog: Better HTTP Request/Response in PHP

Chris Hartjes' Blog: Better HTTP Request/Response in PHP
In a recent post to his blog Chris Hartjes looks at the idea of better HTTP Request/Response functionality in PHP, more than just the superglobal handling and PECL HTTP extension it has now.I think the fact that we have $_POST and $_GET lulls some of us into the false sense that we should have $_PUT and $_DELETE objects, since that would map to the commonly-desired set of HTTP verbs that REST likes to use. But what should be inside those things, or should we be moving towards a more Pythonesque solution...

PHP 5.4.0RC3 released

PHP 5.4.0RC3 released
The PHP development team is proud to announce the third release candidate of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. THIS IS A RELEASE CANDIDATE - DO NOT USE IT IN PRODUCTION!. This is the third release candidate. The release candidate phase is intended as a period of bug fixing prior to the stable release. No new features should be included before the final version of...

Community News: CICONF '12 Speaker List

Community News: CICONF '12 Speaker List
The CICONF (CodeIgniter conference) group has made a new post about the lineup for their next event including people like Adam Griffiths, Alex Bilbie, Alexis Serneels, Harrow "WanWizard" Verton, Nick Jackson and Tyler Flint.The chances are if you are using a library, addon, Spark or tutorial for your CodeIgniter projects it will have been written by one of these guys. Adam Griffiths wrote the book, Alex Bilbie has made some amazing OAuth 2 and Mongo code, WanWizard wrote DataMapper ORM - the most popular...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
YLS Parser Easy Framework yasdb - Yet Another Sync for db (MySQL) EnCryptDe Yet Another Sync for db (MySQL) Class Connect Database SalesNet Cradlecore For PHP

14.12. Backbone VS Knockout VS JavaScriptMVC

14.12. Backbone VS Knockout VS JavaScriptMVC
In this article IA'd like to compare Backbone, Knockout and JavaScriptMVC under the following points: documentation installation understanding complexity for what kind of project So letA's start with Backbone. The documentation of Backbone is available under the following link. The complete documentation is written on a single page. Its very easy to search for topics you are interested in. After a short introduction youA'll find one or more code examples for each topic. These examples are nicely...

Nightmare Before (Last) Christmas

Nightmare Before (Last) Christmas
A little over a year ago I was plunged into a nightmare world. I had accepted a new job as the lone PHP developer at a relatively small business, and when I finally got my hands on the code, I realized I'd gotten myself into a giant mess. While I'm happy at my job today, my first months were filled with disbelief, horror, anguish, doubt, and despair as I began to dig into the legacy codebase I had inherited. Things were a little dicey those first few months. I'd seen really bad code before (I've written...

PHP Advent 2011: Out with the Old, In with the... Old?

PHP Advent 2011: Out with the Old, In with the... Old?
PHP Advent 2011: Out with the Old, In with the... Old?: Hey, I'm in this year's PHP Advent! Check out some MySQL goodness and how it's changed over the years!

Welcome PECL/mysqlnd_ms 1.2.0-alpha with global transaction ID support

Welcome PECL/mysqlnd_ms 1.2.0-alpha with global transaction ID support
Christmas time, time for presents! Version 1.2.0-alpha of the free and open source PHP mysqlnd replication and load balancing plugin has been made available on PECL. PECL/mysqlnd_ms makes using any kind of MySQL database cluster easier featuring: Read-write splitting: automatic, SQL hints, can be disabled Load balancing: random, round robin, ...

PHP 5.4.0RC3 released

PHP 5.4.0RC3 released
The PHP development team is proud to announce the third release candidate of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. THIS IS A RELEASE CANDIDATE - DO NOT USE IT IN PRODUCTION!. This is the third release candidate. The release candidate phase is intended as a period of bug fixing prior to the stable release. No new features should be included before the final version of PHP 5.4.0....

John Conde's Blog: Handling Online Payments With PHP And Authorize.Net

John Conde's Blog: Handling Online Payments With PHP And Authorize.Net
John Conde has shared his multi-part guide to getting your application integrated with the popular payment service Authorize.net.As an Authorize.Net blogger, I decided to write a series of articles that outlined not only the basics of handling an ecommerce transaction, but also included some best practices as well. These were demonstrated using a web-based payment form that when complete forms a real-world, production ready solution. Since there was a lot of ground to cover, I broke the tutorial into...

Community News: "Developer Hell" Podcast

Community News: "Developer Hell" Podcast
Chris Hartjes and Ed Finkler (two well-known PHP community members) have started up a podcast where they talk about, basically, whatever they want in their "piss-and-moan-driven-development" style. In their first episode, they talk about what they hate about PHP.Listen to a couple old dudes complain that they don't like PHP anymore. Yes, I know, this sounds pretty compelling.They specifically mention the PUT method support in PHP. You can download the mp3 (about an hour and a half long) and check out the...

PHPMaster.com: Targeted Geolocation with Geonames

PHPMaster.com: Targeted Geolocation with Geonames
New on PHPMaster.com there's a tutorial from Lukas White about targeting users using geolocation based on the Geonames web service and a latitude/longitude. His example makes a call to find the closest "place" to the given coordinates.Location-aware applications rely on being able to locate where you are, and this is what geolocation is all about. After all, once the application knows your location, it can go on to find the nearest store, guide you through the appropriate route to a destination, or...

DevShed: Sanitizing Input with PHP

DevShed: Sanitizing Input with PHP
DevShed.com has a new tutorial posted today looking at how to sanitize data in your application, specifically data coming from the user, when calling shell commands.Neglecting to sanitize user input that may subsequently be passed to system-level functions could allow attackers to do massive internal damage to your information store and operating system, deface or delete Web files, and otherwise gain unrestricted access to your server. And that's only the beginning.He starts with a "real world" example...

NetTuts.com: Build an Admin Panel with the Fuel PHP Framework

NetTuts.com: Build an Admin Panel with the Fuel PHP Framework
Phil Sturgeon (an expert in all things related to the Fuel PHP framework) has written up a tutorial for NetTuts.com about creating a basic admin panel for your application based on the framework. This is the second part of a series looking at Fuel, building on the topics from the first.In the first part of this series, we took a look at the basics of the FuelPHP framework. In this second-part, we'll be stepping it up a gear and move onto some more advanced topics! We'll be creating an admin panel for our...

ZendCasts.com: RESTful Delete with SLIM, jQuery and JSON

ZendCasts.com: RESTful Delete with SLIM, jQuery and JSON
Continuing on with his webcast series looking at using the Slim microframework to create a RESTful web service with JSON Output, John Lebensold takes the code from the previous tutorials (part one, two, three) and adds handling for DELETE to remove values from the data.This tutorial will show you how to add jQuery RESTful calls for using the DELETE verb when deleting items via a JSON REST interface.You'll definitely need to check out either the previous tutorials in the series to follow along with the...

Latest PHP Tweets