PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 3321 to 3340 of 6889

PHP OAuth Provider: Access Tokens

PHP OAuth Provider: Access Tokens
I've been working with OAuth, as a provider and consumer, and there isn't a lot of documentation around it for PHP at the moment so I thought I'd share my experience in this series of articles. This relates to the stable OAuth 1.0a spec, however OAuth2 has already started to be adopted (and differs greatly). This article uses the pecl_oauth extension and builds on Rasmus' OAuth Provider post. This entry follows on from the ones about the initial requirements, how to how to handle request tokens, and...

Why do I ask you to rate Fox_captcha?

Why do I ask you to rate Fox_captcha?
Why do I ask you to rate Fox_captcha? By Said Bakr In this article I am asking you to that found Fox_captcha package useful to rate it.

Fake *.google.com SSL certificate in the wild

Fake *.google.com SSL certificate in the wild
Interesting news passed by today, apparently a fraudelent SSL was issued by Diginotar, effectively allowing wrong-doers to perform MITM attacks for all google services. Normally fake certificates will clearly error up in the browser, but because Diginotar is a trusted CA (certificate authority) it won't. This says something about how much we can trust SSL. All it takes is one corrupt employee at a trusted CA and it falls down. CNET has pretty good coverage of the story.

Gonzalo Ayuso's Blog: Building a small microframework with PHP (Part 2). Command line interface

Gonzalo Ayuso's Blog: Building a small microframework with PHP (Part 2). Command line interface
Continuing on with his previous investigations into microframworks and what it takes to create them, Gonzalo Ayuso has posted his second part of the series - a look at working on the command line.In my last post we spoke about building a small microframework with PHP. The main goal of this kind of framework was to be able to map urls to plain PHP classes and become those classes easily testeable with PHPUnit. Now we're going to take a step forward. [...] It's pretty straightforward to create a command...

The basics of having successful remote team members

The basics of having successful remote team members
aoSo how did you find a job with Sugar?a This is one of the first set of questions that always comes out when people ask me about what I do (alongside aoWhat's SugarCRM?a, aoWhat is CRM?a, andAaWhere's Ohio?a). I can actually see how this is a pretty relevant question; SugarCRM has no presence in Ohio other than me (although now just recently another fellow just joined us). And it's not like SugarCRM was doing some sort of hiring campaign in Ohio at the time; heck, Northeast Ohio isn't exactly what I'd...

C. Sadeesh Kumar's Blog: Smart File Type Detection Using PHP

C. Sadeesh Kumar's Blog: Smart File Type Detection Using PHP
In a new post today C. Sadeesh Kumar has a quick tip to help your script detect file types without having to rely on the extension to be correct.In most web applications today, there is a need to allow users to upload images, audio and video files. Sometimes, we also need to restrict certain types of files from being uploaded - an executable file being an obvious example. Security aside, one might also want to prevent users from misusing the upload facility, e.g. uploading copyrighted music files...

Joris de Wit's Blog: Extending different layouts for Ajax requests in Twig, Symfony2

Joris de Wit's Blog: Extending different layouts for Ajax requests in Twig, Symfony2
Joris de Wit has a (very) quick post about a handy tip he found about switching layouts easily with Twig in his Symfony2-based application - a handy ternary sort of switch that can detect when something's an Ajax request.I just learned about the 'app' global variable in twig. It's very handy for loading a special layout for ajax requests.The "app" variable allows you get get back at some of the settings of your application and check on special things like the isXMLHttpRequest in his example. For more...

Stas Malyshev's Blog: ZF Oauth Provider

Stas Malyshev's Blog: ZF Oauth Provider
In a new post Stas Malyshev has shared some code for an OAuth provider he's written up to work specifically with Zend Framework applications.Zend Framework has pretty good OAuth consumer implementation. However, it has no support for implementing OAuth provider, and it turns out that there aren't many other libraries for it. Most examples out there base on PECL oauth extension, which works just fine, with one caveat - you have to have this PECL extension installed, while ZF implementation does not...

2-step verification with Google Authenticator and PHP

2-step verification with Google Authenticator and PHP
Many large web services nowadays support 2-step verification to enhance the security for their users. With 2-step verification you have to supply a one-time-token besides your usual username/password so in case someone steals your password it won't help them much, because they don't have (hopefully) the device which provides this one-time-token for you. You may know this from your bank or even enabled it on Google Apps, Facebook or Amazon. The main point about 2-step verification is that something else...

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 3

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 3
Michelangelo van Dam is back today with the next part of his "Quality Assurance in PHP Projects" series, the third part of his look at PHPUnit, the popular PHP-based unit testing software.Time for the third part on unit testing with phpunit in my Quality Assurance on PHP projects series. In part one we started writing unit tests for a simple game of tic-tac-toe. In part two we started converting our unit tests into actual code and moved our general unit test code for grids into a Grid focussed unit test....

Phil Sturgeon's Blog: CICON2011 and the future of CodeIgniter

Phil Sturgeon's Blog: CICON2011 and the future of CodeIgniter
As mentioned by CodeIgniter.com Phil Sturegon has posted a wrapup of this year's CICON2011 (CodeIgniter conference, US-side) that happened in New York on the 20th.CICON2011 happened and it was awesome. We had 100 CodeIgniter nerds in the same place - which is the biggest collection of CI nerds since 54 at CICON2010 in the UK, but this event was so much better. We had a whole load of announcements that have changed the way the framework is contributed to and improved the whole community for the better....

Community News: Latest PEAR Releases for 08.29.2011

Community News: Latest PEAR Releases for 08.29.2011
Latest PEAR Releases: XML_RPC 1.5.5 DB 1.7.14

ZF Oauth Provider

ZF Oauth Provider
Zend Framework has pretty good OAuth consumer implementation. However, it has no support for implementing OAuth provider, and it turns out that there aren't many other libraries for it. Most examples out there base on PECL oauth extension, which works just fine, with one caveat - you have to have this PECL extension installed, while ZF implementation does not require that. So I went ahead and wrote some code that allows to easily add OAuth provider to your ZF-based or ZF-using application. That should...

Quality Assurance on PHP projects - PHPUnit part 3

Quality Assurance on PHP projects - PHPUnit part 3
Time for the third part on unit testing with phpunit in my Quality Assurance on PHP projects series. In part one we started writing unit tests for a simple game of tic-tac-toe. In part two we started converting our unit tests into actual code and moved our general unit test code for grids into a Grid focussed unit test. In this part, we're looking at how we can optimize the tests for our players.When we look at our initial tests for players, we only focussed on two things: each player has a symbol and...

Derick Rethans' Blog: Remote Debugging PHP with a Firewall in the Way

Derick Rethans' Blog: Remote Debugging PHP with a Firewall in the Way
Sometime debugging PHP applications isn't as easy as just pointing your IDE directly at the server and starting to work. Derick Rethans has a new post talking about one such situation, remote debugging with a firewall in between you and the remote machine with XDebug. The PHP debugging extension Xdebug has "remote" debugging capabilities for single-step debugging PHP applications. This works by setting your favourite IDE into listening mode and instructing Xdebug (with one of the handy browser extensions...

Kevin Schroeder's Blog: The best developers hit F5

Kevin Schroeder's Blog: The best developers hit F5
Kevin Schroeder has a suggestion for developers out there - you should hit F5 more often:The best developers hit "Refresh"? No. Well, yes, but that's not what I was referring to. F5 is what you hit in Zend Studio/PDT to "Step Into" during a debug session. A LOT of developers just look at an API, or code completion, write to it, commit, deploy and they're done. I have found that the best developers not only build to the API, whatever it is, but also watch the API at work.In his opinion, he's never met...

Christian Weiske's Blog: Working with .phar files

Christian Weiske's Blog: Working with .phar files
Christian Weiske has a new post to his blog looking at a feature of PHP that's very useful yet doesn't seem to be widely used - phar archives. His post introduces you to phar and includes the good and the bad about their use.It is possible to pack an entire PHP web application up in one single file and run it without unpacking it. This files usually have a .phar extension, which is an acronym for PHp ARchive, loosely based on jar (Java ARchive). [...] With PHP 5.3.0, the Phar extension is an official...

PHPBuilder.com: Getting Started with the Fuel PHP Framework

PHPBuilder.com: Getting Started with the Fuel PHP Framework
On PHPBuilder.com today Jason Gilmore has a new tutorial showing you how to gets started with the FuelPHP framework, a relatively new framework-on-the-block that will feel familiar for users of CodeIgniter and Kohana.As it happens, there are even frameworks available for those developers wishing to take advantage of the very latest PHP features such as closures and namespaces. Two such solutions are the aforementioned fat-free microframework and another relative newcomer called Fuel. Although only about...

Site News: Popular Posts for the Week of 08.26.2011

Site News: Popular Posts for the Week of 08.26.2011
Popular posts from PHPDeveloper.org for the past week:PHPClasses.org: Top 10 Wrong Ideas About PHP That You Should Get Right PHP.net: PHP 5.3.7 Released! Lee Blue's Blog: What's The Best PHP Framework? Dzone.com: Object Calisthenics SkyTechGeek.com: 10 Exceptional Tools For Website Testing Tutorialzine.com: Building a Website with PHP, MySQL and jQuery Mobile, Part 1 Jason Gilmore's Blog: How I Learned to Stop Worrying and Love Zend_Form Working Software Blog: Escaping single and double quotes for use...

Working with .phar files

Working with .phar files
It is possible to pack an entire PHP web application up in one single file and run it without unpacking it. This files usually have a .phar extension, which is an acronym for PHp ARchive, loosely based on jar (Java ARchive). The PEAR installer has been distributed since ages as a single .phar file, thanks to the PHP_Archive package. With PHP 5.3.0, the Phar extension is an official part of PHP. Shipping your applications as Phar thus is safe since 5.2 has reached its EOL already....

Latest PHP Tweets