PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 4181 to 4200 of 6889

Leonid Mamchenkov's Blog: Disable and enable CakePHP plugins on the fly

Leonid Mamchenkov's Blog: Disable and enable CakePHP plugins on the fly
Leonid Mamchenkov has a quick post to his blog showing how to enable and disable (well, restrict from enabling) CakePHP plugins on the fly - no need to modify config files if you only need it for a certain request.I am currently working on a rather large project which is based on CakePHP framework. In order to simplify the task, I've broken down the whole application into a number of CakePHP plugins. Now, however, I want to enable/disable plugins on the fly. After a brief search around I couldn't find...

Zend Developer Zone: My Favorite Design Patterns

Zend Developer Zone: My Favorite Design Patterns
On the Zend Developer Zone there's a new article from Keith Casey where he talks about some of his favorite design patterns he's come across in his time as a developer - adapter, facade and decorator.Within the Design Patterns world, there are four main categories: Architectural, Structural, Creational, and Behavioral. Architectural patterns describe the system as a whole, Structural patterns describe the relationships between objects, Creational handle creating objects, and finally Behavioral describe...

PHP Frameworks

PHP Frameworks
Last week I spoke at and attended the first ever PHP Community Conference. It was very good. It was also very different from my normal conference. I usually go for very technical stuff. I don't often stop and smell the roses of the community or history of my chosen (by me or it I am not sure sometimes) profession. There was a lot of community at this one.One thing that seemed to be a hot topic at the conference was frameworks. CakeDC, the money behind CakePHP was the platinum sponsor. I chatted with...

Eran Galperin's Blog: Breaking Down The PayPal API

Eran Galperin's Blog: Breaking Down The PayPal API
In a recent post Eran Galperin takes a look at the PayPal API and breaks it down into smaller, easy to digest chunks to show you how to you can implement it in your application. Be warned, though - he mentions that it's the "among the worst API he's ever had to deal with" for several reasons.PayPal is the most popular platform for receiving online payments. The relative ease of opening a PayPal account and receiving payments compared to opening a merchant account for a traditional payment gateway is the...

PHP Community Conference wrapup

PHP Community Conference wrapup
What do you get when 150+ PHP programmers descend on Nashville, TN for a day? You get a programming ho-down! Click on in, I've got pix acause it did happen!

PHPBuilder.com: Use PDO to Access Just About Any Database from PHP

PHPBuilder.com: Use PDO to Access Just About Any Database from PHP
New on PHPBuilder.com there's a tutorial from Leidago Noabeb about using the PDO functionality that comes installed on many PHP platforms out there to access just about any database you might need to work work. This includes technology like MySQL, DB2, SQLite and PostgreSQL.PHP Data Objects, or "PDO" as it is commonly known, is a lightweight database abstraction layer that is arguably the best, at least in terms of speed. A great deal of this speed is owing to the fact that the PDO extension was compiled...

Community News: Latest PEAR Releases for 04.25.2011

Community News: Latest PEAR Releases for 04.25.2011
Latest PEAR Releases: Payment_DTA 1.4.1 Services_Amazon_S3 0.3.3 Net_DNS2 1.1.0

Gtk3 introspection updates and Unusable Unity..

Gtk3 introspection updates and Unusable Unity..
Article originally from rooJSolutions blogWell, as Gnome 3 is out, it has to be tested.ALuckilyAI've not got a huge deployment to sort out, but as I have a few applications that use Gtk, I thought it was about time I upgraded one of my machines to see what chaos I will have to deal with in the future.So it was one of my Ubuntu boxes that got the pleasure of a Natty and Gnome3 PPA upgrade. (I use debian on my other development box, which actually got destroyed last week with a complete disk failure,...

Breaking down the PayPal API

Breaking down the PayPal API
PayPal is the most popular platform for receiving online payments. The relative ease of opening a PayPal account and receiving payments compared to opening a merchant account for a traditional payment gateway is the number one reason, and another is the comprehensive API they provide for their payment services. Foreclosure: The PayPal API is amongst the worst I've ever had to deal with - inconsistencies, sometimes poor and conflicting documentation, unpredictable failures and account changes and major...

I'm going nomad - introducing Nelmio

I'm going nomad - introducing Nelmio
After almost three years working at Liip, I have finally decided to take the plunge and start my own business. Together with Pierre Spring, in early May we will start building up Nelmio. Why? To keep it short, Liip is a great company to be employed at - and they're hiring - but both Pierre and I have had the urge to be our own bosses for a while, and that is something that's hard to suppress. Eventually we had to give in.What next? We're both web devs, with lots of experience across the board. Pierre is...

NetTuts.com: Protect a CodeIgniter Application Against CSRF

NetTuts.com: Protect a CodeIgniter Application Against CSRF
In a recent post to NetTuts.com, they show you how to protect your CodeIgniter application from cross-site request forgery (CSRF) attacks by using tokens in your forms and pages to make things more "one time" and unique to the site.In today's tutorial, we will learn how to painlessly protect your CodeIgniter (pre 2.0) application against Cross-Site Request Forgery attacks. The library we'll be creating today will automate all of the protection mechanisms, making your site stronger and more secure.They've...

My Favorite Design Patterns

My Favorite Design Patterns
Earlier this week, I taught a "php|architect Live" session on Object Oriented Programming: Principles & Practice. While preparing for the course, I realized that despite regularly talking about Design Patterns in the PHP community, we primarily talk about just a few. So while we complain about Singletons and celebrate MVC, we leave out many of the others that can make our lives easier and our code better.

DreamInCode.com: Preventing PHP Mail(...) Header Injections

DreamInCode.com: Preventing PHP Mail(...) Header Injections
On the Dream In Code forums there's a recent post showing you how to prevent mail() header injections when taking user input, like from a form.PHP's mail() function is a very useful and powerful function, even to the point that it is very easy to exploit. A way hackers exploit this function is a method called email header injection. [...] I'm sure most of you can already tell that's not going to be pretty since we didn't check the user input and so forth. PHP provides us with functions such as filter_var...

CodeIgniter.com: Tickets On Sale For CICON2011: The First US CodeIgniter Conference

CodeIgniter.com: Tickets On Sale For CICON2011: The First US CodeIgniter Conference
On CodeIgniter.com today there's an official release talking about this year's CodeIgniter-centric conference - CICON 2011 US - happening in New York August 20th and 21st.CICON2011 US is the first CodeIgniter-only conference in the United States, and will be taking place at New Work City in lower Manhattan, New York, on August 20-21 2011. Speakers including Zach Kitzmiller, Eric Barnes, Greg Aker, John Crepezzi, Dan Horrgian, and Kenny Katzgrau will be presenting and conducting masterclasses on topics...

Enforcing target descriptions within build files with a Git hook

Enforcing target descriptions within build files with a Git hook
When automating mundane tasks of a project or development environment with a build tool like Phing or Ant, the driving build file will naturally accumulate several targets and tasks over time. To ease the build file acceptance within a team and at a later stage also the contribution rate by team members, it's crucial that all build targets have a description attribute to provide at least a rough outline of the build features at hand. When these attributes are in place the (potential) build file user will...

Eric Hogue's Blog: Late Static Binding

Eric Hogue's Blog: Late Static Binding
Eric Hogue has a recent post to his blog looking at one of the more tricky aspects of the latest versions of PHP (the 5.3.x series) - late static binding. In a nutshell, late static binding (LSB) lets static classes and methods work more correctly than before. Eric gets into a bit more detail than that:It came out almost 2 years ago, but it to me that many programmers around me have no idea about it. Myself, I have learned about it around 6 months ago. The PHP documentation defines late static binding as...

Site News: Popular Posts for the Week of 04.22.2011

Site News: Popular Posts for the Week of 04.22.2011
Popular posts from PHPDeveloper.org for the past week:Kenny Meyers' Blog: How CodeIgniter Works (Video from EECI 2010) Community News: IPC10 - PHP: Yesterdays Scala and the Cobol of tomorrow? (video) Victor Farazdagi's Blog: New Project: Phrozn - static site generator in PHP WebTutor.pl: HipHop for PHP: Benchmark - Revenge of PHP DZone.com: What I Love/Hate About PHP Site News: Popular Posts for the Week of 04.15.2011 Project: Guzzle - RESTful web service client development framework Zend Developer Zone:...

PHP replication plugin statistics and troubleshooting

PHP replication plugin statistics and troubleshooting
The PHP replication and load balancing mysqlnd plugin as been released as an alpha through PECL. Alpha is for those who want to try out the 1.0 feature set as early as possible. Alpha is for those who do not fear debugging, if need be. Notes on troubleshooting. Testing load balancing and read/write split There are three ways to verify that load balancing and read/write split works as it should: within PHP script: checking thread/connection ids within PHP script: monitoring statistics externally:...

Community News: Dutch PHP Conference - Update on DPC Uncon

Community News: Dutch PHP Conference - Update on DPC Uncon
On the Dutch PHP Conference's site today there's a new post from Stefan Koopmanschap, the organizer of this year's DPC Unconference, talking about some of the recent advancements in it's organization.Last year we introduced the uncon track at Dutch PHP Conference, a separate track next to the conference tracks where you, the attendees of the conference, could be the speaker. [...] It was a great success thanks to all the speakers who stepped up to take an open slot and present their topic. [...] This...

Project: Mink library integration bundle for Symfony2 (for Behat)

Project: Mink library integration bundle for Symfony2 (for Behat)
Konstantin Kudryashov has linked to a new tool that's adds BehatMink browser abstraction library for your Symfony2 project as a part of the Behat project (a BDD testing tool for PHP).You can now test your Symfony2 applications with PHPUnit and Mink, thanks to brand new MinkBundle.This new tool provides a clean API, support for Symfony2's test.client browser emulator and support for the Goutte and Sahi browser emulators as well. In the README on it's github page, they've provided some sample code snippets...

Latest PHP Tweets