PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 81 to 100 of 182

CloudSpring.com: Using the Rackspace PHP SDK

CloudSpring.com: Using the Rackspace PHP SDK
On the CloudSpring site today there's the continuation of a previous article about RackSpace's CloudFiles API. In this new post they show how to use their PHP SDK to connect to and use the CloudFiles service.Rackspace provides a Software Development Kit (SDK) for multiple programming languages. They store their PHP SDK on GitHub. The PHP SDK requires PHP 5 with the following modules: cURL, FileInfo and mbstring. In this tutorial we are going to review use of the PHP SDK with CloudFiles. Not all parts of...

Stoimen Popov's Blog: PHP: Don't Call the Destructor Explicitly

Stoimen Popov's Blog: PHP: Don't Call the Destructor Explicitly
In this new post to his blog Stoimen Popov talks about calling the "destructor" method of an object and why doing it directly could lead to some issues - like not actually destroying the object before the script ends.At the end of the script the interpreter frees the memory. Actually every object has a built-in destructor, just like it has built-in constructor. So even we don't define it explicitly, the object has its destructor. Usually this destructor is executed at the end of the script, or whenever...

Stop SOPA and Save the Internet

Stop SOPA and Save the Internet
I'll level with you. I've not really paid much attention to all the chatter about the Stop Online Piracy Act (SOPA) and the PROTECT-IPAAct. I'm busy, and I know anything to do with government policy as it relates to the Internet is going to be a big bummer. This is definitely a big bummer, and if you're like me, our inaction sure hasn't helped. I've always felt like there's not much I can do to prevent the US government from doing stupid things from time to time, especially when it comes to the Internet,...

DZone.com: Selenium 2 from PHP code

DZone.com: Selenium 2 from PHP code
On DZone.com today Girogio Sironi shares some of his experiences testing out the PHP bindings currently offered to work with Selenium, the web application frontend testing tool that's become a standard over the past few years.After trying out Selenium 2, it was natural for me to look for its support in PHP code; however, there isn't an official PHP Api distributed on Selenium's website. I tested all the PHP bindings I could find to see which is the best choice today.He tried out a few different...

Lorna Mitchell's Blog: Handling SQL Errors in PDO

Lorna Mitchell's Blog: Handling SQL Errors in PDO
Lorna Mitchell has a quick new post showing one way to handle SQL errors in PDO that could pop up because of badly written/generated SQL statements.I love PHP's PDO (PHP Data Objects) extension; it gives a consistent, object-oriented interface to handling all kinds of relational database backends. One thing that annoys me is that the MySQL driver for PDO defaults to a silent error mode which can make SQL errors tricky to spot!In her two code snippets she shows a failing PDO request (that fails silently)...

Kevin Schroeder's Blog: Connecting to PHPCloud.com through Zend Studio 9

Kevin Schroeder's Blog: Connecting to PHPCloud.com through Zend Studio 9
If you're a Zend Studio user and have been wondering how to hook it directly into the phpcloud service from Zend, Kevin Schroeder has posted complete instructions in a new post today (complete with screenshots).PHPCloud.com is the landing page for our new cloud offering. Using the Zend Application Fabric you can build your applications in the same environment as you will be deploying your apps to. The application is built on my.phpcloud.com and you can then deploy it onto any platform where the Fabric is...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Simple External SMTP Angell EYE PayPal Payments Pro and Adaptive Payments Library Quick And Easy Password Hashing PHP Time Class PortScanner External Sort Crepager Fiscal Year Checker(or) Date check Fiscal Year Date Check Tor AjaxLogger AJAX Logger Reingold Tilford

Handling SQL Errors in PDO

Handling SQL Errors in PDO
I love PHP's PDO (PHP Data Objects) extension; it gives a consistent, object-oriented interface to handling all kinds of relational database backends. One thing that annoys me is that the MySQL driver for PDO defaults to a silent error mode which can make SQL errors tricky to spot! To give you an example, consider the query below (the correct tablename is country, so this SQL will fail): $db = new PDO('mysql:host=localhost;dbname=sakila', 'user', 'pass'); A $sql = 'select * from countrt'; $stmt =...

php|architect: php|architect Live! presents The Cloud Summit

php|architect: php|architect Live! presents The Cloud Summit
php|architect has officially announced the speaker line up for what they call their "Cloud Summit", a day-long event happening at the end of November about cloud computing - what it is and how you and your PHP applications can take advantage of it.Tired of hearing about the ever-so... nebulous "Cloud" and what vendors say it will do for humankind? Yeah, us too. So, why won't it just go away? We found some folks who have used the cloud successfully to strike it big and asked them to show us why it made...

Community News: PHP UK Conference 2012 - "Blind Bird" Tickets until Dec. 4th

Community News: PHP UK Conference 2012 - "Blind Bird" Tickets until Dec. 4th
As a reminder, the PHP UK Conference (2012) still has their "Blind Bird" tickets on sale until the 4th of December for £90:Purchase blindbird 2012 conference registration(s) for Friday 24th and/or Saturday 25th February - available at this price until 4th December 2011. After this time the earlybird 2012 conference registration for Friday 24th February will be available at £120/£210 excluding VAT, with only the full price of £140/£250 excluding VAT available from 3rd January 2012.The conference is...

Court Ewing's Blog: Follow-up: How PHP is Broken and How It Can Be Fixed

Court Ewing's Blog: Follow-up: How PHP is Broken and How It Can Be Fixed
In a follow up to his previous post about how PHP is broken (and what can be done to fix it), Court Ewing has this new post with a few suggestions on how PHP development could be better, but admits that PHP itself is not broken.It is no secret that the PHP development process has never been a shining example of project organization or quality assurance. Until recently, some of the most important aspects of any project's development cycle were either entirely lacking or were ill-defined. Worse, there was...

php|architect: Full-text Search with SQLite

php|architect: Full-text Search with SQLite
On the php|architect site there's a recent tutorial from Jeremy Kendall about full-text searching in SQLite, a lightweight database alternative that, since it's stored locally, can be used without a full database server.Full-text search with SQLite is so ridiculously easy to implement, there are only two valid reasons you haven't done it yet. The first is you don't need the full-text capability, and the second is you didn't know it could be done.In his method he creates a full-text search table (using...

PHPMaster.com: Getting Started with PHPUnit

PHPMaster.com: Getting Started with PHPUnit
On PHPMaster.com today, there's a new tutorial helping you get started with on of the most popular unit testing frameworks for PHP, PHPUnit. In this new article they help you write your first tests, run them and figure out what to do when they fail.Most people know that testing your websites is a good idea, but after some time testing can become tedious. What if a lot of this testing process could be automated so you don't have to go trough every function manually, time after time, to ensure that it...

Community News: Latest PECL Releases for 11.15.2011

Community News: Latest PECL Releases for 11.15.2011
Latest PECL Releases: APM 1.0.1 cld 0.5.0

Follow-up: How PHP is Broken and How It Can Be Fixed

Follow-up: How PHP is Broken and How It Can Be Fixed
A few weeks ago I wrote an article in which I complained about a few aspects of the PHP development process that I thought were inexcusable and harmful. The article was surprisingly well-received with only a handful of people responding by demeaning me; given the nature of the article, I'd say that is a big win! The generally positive response does not make up for the flaws in the article itself, however. You see, I started out writing the article with the serious intention of making not only an honest...

Learncomputer.com: PHP Profilers Compared (PHP Quick Profiler & XDebug)

Learncomputer.com: PHP Profilers Compared (PHP Quick Profiler & XDebug)
In a recent post from Learncomputer.com, there's a comparison of two PHP profilers - the PHP Quick Profiler and the one included in Xdebug.Whether you are an experienced developer or just getting started it is important to know how to measure the performance of your scripts and applications so that you can learn to make improvements and optimizations to your code. [...] This article compares two of the most popular [profiling] solutions under free license that you can begin using today to profile your...

Robert Basic's Blog: Benchmarking pages behind a login with ab

Robert Basic's Blog: Benchmarking pages behind a login with ab
Robert Basic has a recent post showing you how to use the "cookie jar" functionality included with Apache's "ab" benchmarking tool to get behind your PHP-based login with a simple curl and grep combo.Tonight I decided to relax a bit and what better way of relaxing is there for a geek then to do some bash scripting?! So for fun and no profit I decided to try and benchmark pages with ab, Apache HTTP server benchmarking tool, which are behind a login. Turns out, it's pretty easy after reading some man...

Lukas Smith's Blog: Travis, CI for OSS

Lukas Smith's Blog: Travis, CI for OSS
In a new post to his blog Lukas Smith looks at a recently introduced service, Travis CI that helps make continuous integration simple (and without having to set up the software yourself). He talks about his experiences in getting his trial project up and working with their system.Continuous integration is one of these topics that had a slow start, but in recent years has really taken off. The slow start is likely to be attributed to the fact that it was perceived as hard to setup and maintain. But...

mysqli_result iterations

mysqli_result iterations
For the last few months I had quite a few MySQL blog posts and didn't have anything from my "new features in PHP [trunk|5.4]" series. This article is a bridge between those two. The PHP 5.4 NEWS file has a small entry: MySQLi: Added iterator support in MySQLi. mysqli_result implements Traversable. (Andrey, Johannes) From the outside it is a really small change and easy to miss. The mentioned class, mysqli_result, implements an interface which adds no new methods. What once can't see is that this...

PHPMaster.com: Localizing PHP Applications "The Right Way", Part 3

PHPMaster.com: Localizing PHP Applications "The Right Way", Part 3
PHPMaster.com has posted its third part of its "Localizing PHP Applications 'The Right Way'" series. In this third part you'll learn more about locales and message domain switching.In Part 2 you gained more insight into using the gettext library by learning the most important functions of the extension. In this part you'll learn how to best use a fallback locale, switch between locales, and override the currently selected message domain.They show you how to set up the directory structure to handle a...