PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 101 to 120 of 250

Testing persistent connection and thread-safety features in PHP

Testing persistent connection and thread-safety features in PHP
By default PHP provides shared-nothing environments to ensure that whatever happens to PHP's state in one request has no effect on other requests, so all function tables are cleaned up, all file handles are closed etc. In a few rare cases this is not what people like, for that PHP introduced "persistent connections" of different kinds. Testing those is a bit annoying as you have to configure a webserver and ensure to hit the same instance over the course of a test and then use a load generator, probably...

Thilanka Kaushalya's Blog: How to use Mysql Transactions with PHP

Thilanka Kaushalya's Blog: How to use Mysql Transactions with PHP
In this recent post to his blog Thilanka Kaushalya shows how to use transactions in MySQL databases (using mysqliWeb applications are more popular today than ever with the increasing number of internet users. Most of the standard alone applications converted as web based applications or at least they try to provide a web interface for users. PHP and Mysql are two leading technologies which allow uses on rapid development of web based systems. "Transaction" is a powerful concept which comes with Mysql 4.0...

PHPMaster.com: Automatic CSS3 Prefixer and Compressor

PHPMaster.com: Automatic CSS3 Prefixer and Compressor
On PHPMaster.com today there's a new tutorial showing how to use a little PHP magic to compress your CSS automatically.There are many ways to compress CSS files or automatically generate browser-specific CSS3 prefixes, but usually extra tools are used which is very annoying. I'd like to show you how such tasks can be done using only PHP.Complete code for this small script is included in the article. It uses some regular expressions to parse the CSS and does some replacement and removal of things from the...

Voices of the ElePHPant Podcast: Interview with Jacques Woodcock (of Nashville PHP)

Voices of the ElePHPant Podcast: Interview with Jacques Woodcock (of Nashville PHP)
The Voices of the ElePHPant podcast has posted their latest episode - an interview with Jacques Woodcock, a leader in the Nashville PHP community (including the Nashville PHP user group) and developer on The Kit.Cal's "three questions" for Jacques are: What made you choose PHP (despite not having a background in programming)? What have you learned about the PHP community that you didn't know before starting with the user group? What's been the most interesting part of leading the Nashville PHP user...

Project: RIPS - Static Source Code Analyzer for Vulnerabilities in PHP Scripts

Project: RIPS - Static Source Code Analyzer for Vulnerabilities in PHP Scripts
Gareth Heyes has pointed out an interesting tool today for analyzing the source of your application and trying to discover security-related issues: RIPSRIPS is a tool written in PHP to find vulnerabilities in PHP applications using static code analysis. By tokenizing and parsing all source code files RIPS is able to transform PHP source code into a program model and to detect sensitive sinks (potentially vulnerable functions) that can be tainted by userinput (influenced by a malicious user) during the...

Paul Jones' Blog: Interview Tip: Avoid Mentioning PHP Frameworks

Paul Jones' Blog: Interview Tip: Avoid Mentioning PHP Frameworks
Paul Jones has offered a tip he thinks will help you in future interviews for a software development position - don't mention frameworks.If the job description does not mention "Framework X," you should probably avoid answering that you use "Framework X" to solve the problem presented to you by the interviewer. If I ask you to perform a simple task, such as parsing a string in a well-known format, saying "Framework X does that for me" is likely to be seen as a negative. You should be able to do the...

Brian Swan's Blog: Azure Real World: Migrating a Drupal Site from LAMP to Windows Azure

Brian Swan's Blog: Azure Real World: Migrating a Drupal Site from LAMP to Windows Azure
In this new post to his blog Brian Swan shares the process that he and other Microsoft-ers went through to migrate a site off of a LAMP stack and over to one based on Windows Azure. They moved was the SAG awards website because of issues it had seen with outages and slow performance.In many ways, the SAG Awards website was a perfect candidate for Windows Azure. The website has moderate traffic throughout most of the year, but has a sustained traffic spike shortly before, during, and after the awards show...

Community News: Latest PECL Releases for 03.20.2012

Community News: Latest PECL Releases for 03.20.2012
Latest PECL Releases: lua 0.9.4 pecl_http 2.0.0dev8 xdebug 2.2.0RC1 xdebug 2.1.4

PHP.net: PHP Migrates to Git

PHP.net: PHP Migrates to Git
The announcement has finally come - the PHP project has officially moved to git!The migration of the PHP source code from Subversion to Git is complete. You can clone or fork the source from our GitHub mirror, and we also now support pull requests made via GitHub. The source is also available via git.php.net, and full instructions on cloning the php-src tree can be found at php.net/git. One immediate benefit is that future PHP release tags will be signed by the PHP development team. We will be releasing...

A few more conferences I'll be at soona

A few more conferences I'll be at soona
I'm excited to announce two more conference stops for me this spring! First, is my return to POSSCON in Columbia, SC, at the end of March on the 28th and 29th. I'll be doing a great talk and live demo on building an application on the Sugar platform, but the big draw for this show is to see our very own CEO and Open Source legend Larry Augustin keynoting on aOpen Source - Now and in the Futurea. He's a great speaker and comes with amazing insight from someone who helped coined the term back in the 90as....

PHP migrates to Git

PHP migrates to Git
The migration of the PHP source code from Subversion to Git is complete. You can clone or fork the source from our GitHub mirror, and we also now support pull requests made via GitHub. The source is also available via git.php.net, and full instructions on cloning the php-src tree can be found at php.net/git. One immediate benefit is that future PHP release tags will be signed by the PHP development team. We will be releasing GPG keys for verification purposes in the next few days. More...

RIPS static source code analyser

RIPS static source code analyser
RIPS is a static source code analyser and is one awesome piece of coding by @fluxreiners. Use it now to scan your PHP files for vulnerabilities. It can detect XSS, SQLi, File disclosure, LFI/RFI, RCE and lots more and it's free. I'm downloading the current version now 0.52, so should you!

Mfana Ronald Conco's Blog: RabbitMQ and PHP Part 1

Mfana Ronald Conco's Blog: RabbitMQ and PHP Part 1
In this recent blog post Mfana Ronald Conco looks at combining the RabbitMQ messaging service with PHP, complete with all of the setup instructions (and configuration) you'll need.There are times when you have to make certain features of your PHP application to work asynchronously, and there are times when you do not have to - I will explain this better by introducing every day scenarios.His two scenarios have a common thread - the need for asynchronous processing, especially for something that can scale...

ServerGrove Blog: Error "Cannot find module 'less'" with Symfony2, Assetic and Twitter Bootstrap

ServerGrove Blog: Error "Cannot find module 'less'" with Symfony2, Assetic and Twitter Bootstrap
On the ServerGrove blog, there's a quick post with a handy tip for the Symfony2 + Assetic users out there - how to get it to recognize the "less" module.Unfortunately the Symfony documentation does not provide any details on how to configure Assetic to use LESS. There is a blog post by Dustin Dobervich that gives some pointers, but after following the instructions, Assetic issued the following error: Cannot find module 'less'. We searched around without much success. After several tries, we nailed the...

PHPMaster.com: Building a Domain Model - Integrating Data Mappers

PHPMaster.com: Building a Domain Model - Integrating Data Mappers
In this previous post PHPMaster.com introduced you to the concept of "domain models", structures defining how data should be formatted for consistency. In this second part of the series, Alejandro show show to integrate them with a data access layer (DAL) to make them easier to work with.The phrase may sound like an cheap cliché, I know, but I'm not particularly interested in reinventing the wheel each time I tackle a software problem (unless I need a nicer and faster wheel, of course). In this case,...

Henri Bergius' Blog: Open Advice (Book)

Henri Bergius' Blog: Open Advice (Book)
If you're into Open Source software (doesn't matter if you're new to it or an old hand), you'd do well to check out the book Henri Bergius has posted about - that he also contributed to - "Open Advice - FOSS: What We Wish We Had Known When We Started".As quoted from the LWN review of the book:Open Advice is a book that will be helpful to those who are new to FOSS, but, because of the individual voices, styles, and tones, it doesn't read like a "how to". It could even be recommended to those who aren't...

Brandon Savage's Blog: REST APIs as Data Backends

Brandon Savage's Blog: REST APIs as Data Backends
In his most recent post Brandon Savage looks at a practice that's becoming more and more common - using a REST API as a data source for a web-based application.We were faced with an increasing number of data sources, including the coming addition of Elastic Search to the data storage system, and maintenance was becoming a problem. Thus, the decision was made to move our data layer to our REST API exclusively, removing all direct access to data storage from the web interface. This is the second such...

Nikita Popov's Blog: Understanding PHP's internal function definitions (Part 2)

Nikita Popov's Blog: Understanding PHP's internal function definitions (Part 2)
Following this recent post from Anthony Ferraara about the source code of the PHP language itself, Nikita Popov is working with him and has produced the second part of the series, a look at finding the internal function definitions for the PHP functions you use every day.In the previous part ircmaxell explained where you can find the PHP source code and how it is basically structured and also gave a small introduction to C (as that's the language PHP is written in). If you missed that post, you probably...

Community News: Latest PEAR Releases for 03.19.2012

Community News: Latest PEAR Releases for 03.19.2012
Latest PEAR Releases: Services_OpenStreetMap 0.1.0 Console_Color2 0.1.1 Payment_PayPal_SOAP 0.5.0 System_Daemon 1.0.0 Mail_Mime 1.8.3

REST APIs as Data Backends

REST APIs as Data Backends
Some months ago, the Socorro team agreed that our current mix of REST API middleware calls and direct SQL calls from the web interface simply wasn't meeting our needs. We were faced with an increasing number of data sources, including the coming addition of Elastic Search to the data storage system, and maintenance was becoming [...]