PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 41 to 60 of 219

Scripting Language Related Sessions at Oracle OpenWorld and JavaOne, October 2011

Scripting Language Related Sessions at Oracle OpenWorld and JavaOne, October 2011
Oracle OpenWorld and JavaOne conferences are happening in San Francisco next week. It will be a busy and exciting time. First, here's a shout out: For me the conference kicks off on Sunday morning. Marcelle Kratochvil from Piction (heavy users of PHP and Oracle DB) is hosting the inaugural Unstructured Data with Multimedia SIG for Oracle Database and MySQL database (32440) Sunday 9:00 am in Moscone West room 2011. Below are some of the scripting and related sessions happening during the week....

PHP 5.4 beta1 released

PHP 5.4 beta1 released
The PHP development team is proud to announce the first beta release of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviors. Windows binaries can be downloaded from the Windows QA site. THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION! New features were added and bugs were fixed since alpha1. Please help us to identify bugs by testing new features and looking for unintended backward compatability breaks, so we can fix the problems...

Symfony Blog: Symfony Day Cologne 2011 - Countdown

Symfony Blog: Symfony Day Cologne 2011 - Countdown
Eveline Kaik has posted a reminder about the upcoming Symfony-related event, Symfony Day Cologne 2011, happening on October 21st (and a workshop day in the 20th) happening at Komed Im Mediapark.Only one month to go: for the third time, the Symfony Day will take place in Cologne. 2011 is without a doubt an important year for our favorite framework: Symfony Live Events took place in San Francisco and Paris. A stable release of Symfony2 has been available since summer, and next month, on October 21st 2011,...

Bertrand Mansion's Blog: Twitter Bootstrap and the QuickForm2 Callback Renderer

Bertrand Mansion's Blog: Twitter Bootstrap and the QuickForm2 Callback Renderer
In a new post Bertrand Mansion shows how he combined the versatility of the PEAR QuickForm2 package and the Bootstrap project from Twitter to quickly make a form using the project's styling (CSS).I don't know about you, but for me building HTML Forms and styling HTML Forms are maybe the most boring things in web development. It's repetitive and takes a lot of time to do things correctly. That's why tools like Twitter's Bootstrap and PEAR's HTML_QuickForm2 can help with this part of our job. Wouldn't it...

PHPMaster.com: File Uploads with PHP

PHPMaster.com: File Uploads with PHP
SitePoint's PHPMaster.com site has a new tutorial today from Timothy Boronczky about handling file uploads in PHP. It's a pretty low-level introduction and is perfect for those new to PHP.What do pictures in an online photo album, email attachments in a web-based mail client, and data files submitted to an online application for batch processing all have in common? They all rely on the ability to upload files across the Internet from the user's web browser. Indeed, uploading files is an important feature...

Josh Adell's Blog: Phar Flung Phing

Josh Adell's Blog: Phar Flung Phing
Josh Adell has posted about a bit of automation he set up with Phing and PHP's phar packaging to create an archive as a part of his build system. It's a simple five step process mad even easier by the fact that Phing already has a PharPackage task.One of the cooler features of PHP 5.3 is the ability to package up a set of PHP class files and scripts into a single archive, known as a PHAR ("PHp ARchive"). [...] I decided to see how easy it would be to wrap up Neo4jPHP in a PHAR for distribution. [...]...

Phil Sturgeon's Blog: Managing CodeIgniter Packages with Git Submodules

Phil Sturgeon's Blog: Managing CodeIgniter Packages with Git Submodules
Phil Sturgeon has a new post to his blog today for the CodeIgniter folks out there - a tip on keeping things organized by using git submodules for package management.With CodeIgniter moving to GitHub we are starting to see a lot of CodeIgniter developers wanting to learn more about Git, specifically how they can use it to improve their workflows, manage their applications and move away from the horrible days of copying and pasting updated libraries off a wiki. UCK. Sparks are helping us on the whole, but...

Philip Norton's Blog: Creating A Thumbnail Of A Word Document With PHP And LiveDocx

Philip Norton's Blog: Creating A Thumbnail Of A Word Document With PHP And LiveDocx
In a new post to his blog Philip Norton shares a method for creating a thumbnail of a Word document with the help of PHP and LiveDocx (in this case, the component inside the Zend Framework).Creating Word document icons is very simple thanks to a service called LiveDocx. LiveDocx was created as a web service to allow the easy creation of most document formats from a simple template. However, it is possible to send a normal Word document as the template file and get an image of the file in return.You'll...

Community News: Latest PEAR Releases for 09.26.2011

Community News: Latest PEAR Releases for 09.26.2011
Latest PEAR Releases: Log 1.12.7 Crypt_GPG 1.3.0 Net_Growl 2.4.0 PHP_UML 1.6.0

Direct MySQL Stream Access - Revised

Direct MySQL Stream Access - Revised
Roughly three years ago I was writing about Direct MySQL Stream Access - a way to access the low-level stream PHP's mysqlnd library is using. Back then this had been a patch against PHP's mysqli extension. As such a feature is quite dangerous (you can easily mess with the connection state which confuses mysqlnd and/or the MySQL server) we didn't push it into the main PHP tree. Now three years later it's time to look at this again as we don't need to patch PHP anymore. Since the mentioned patch was...

PHP 5.4 beta1 released

PHP 5.4 beta1 released
The PHP development team is proud to announce the first beta release of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviors. Windows binaries can be downloaded from the Windows QA site. THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION! New features were added and bugs were fixed since alpha1. Please help us to identify bugs by testing new features and looking for unintended backward compatability breaks, so we can fix the problems and fully...

Dynamic Eclipse templates for the singleton pattern

Dynamic Eclipse templates for the singleton pattern
I'm currently working with a legacy PHP CMS and do-it-all system which is heavily reliant on singletons. Instead of relying on static methods and direct invocation we store object instances in a global array, these instances are then retrieved through the use of a call looking like this: singleton('ClassName').... Read More

How to parse and tokenize a complete PHP project

How to parse and tokenize a complete PHP project
Yesterday I had to loop through every directory in a whole PHP project and go through all the PHP files in order to get at their contents, the goal was to get information from each file in order to create an array looking like this for each class method:... Read More

PHPClasses.org: MODX: A CMS Framework Designed with PHP Developers in Mind

PHPClasses.org: MODX: A CMS Framework Designed with PHP Developers in Mind
On PHPClasses.org there's a new article talking about a CMS that's "designed with developers in mind" - MODX, technically a "content management framework".If you have ever wrestled with trying to create a custom Web site using a CMS that made you jump through hoops to get the desired output, you should definitely check out MODX, a CMS framework designed from the ground up with Object Oriented Programming PHP developers in mind. Read this article to learn more about MODX CMS framework and how you can...

Twitter Bootstrap and the QuickForm2 Callback Renderer

Twitter Bootstrap and the QuickForm2 Callback Renderer
I don't know about you, but for me building html Forms and styling html Forms are maybe the most boring things in web development. It's repetitive and takes a lot of time to do things correctly. That's why tools like Twitter's Bootstrap and PEAR's html_QuickForm2 can help with this part of our job. Wouldn't it be nice to have QuickForm2 generate a markup compatible with Bootstrap CSS, so that you could get a nice looking form without to much efforts? Well, that's what I plan to do here.Bootstrap is a...

NetTuts.com: Build Ajax Data Grids with CodeIgniter and jQuery

NetTuts.com: Build Ajax Data Grids with CodeIgniter and jQuery
In a new tutorial from NetTuts.com today they show you how to combine a CodeIgniter-based backend and a jQuery frontend to make a simple Ajax data grid of data pulled from a database.In this lesson, we will create a CodeIgniter library that allows us to generate data grids automatically for managing any database table. I'll explain each step required to create this class; so you'll likely learn some new OOP techniques/concepts in the process! As a bonus, we'll proceed to write some jQuery code that will...

DZone.com: Phar: PHP libraries included with a single file

DZone.com: Phar: PHP libraries included with a single file
On DZone.com today Giorgio Sironi has a new post looking at an interesting, if seldom used, feature of recent PHP releases - packaging applications with phar archives.Phar is a php extensions that provides the means for distributing code as a single archive, that does not have to be extracted to a folder before usage. The concept is similar to JVM Jars: each archive becomes a virtual directory where files can be accessed. However, the virtual folder is not limited to class loading, but you can open and...

Gareth Heyes' Blog: Non alphanumeric code in PHP

Gareth Heyes' Blog: Non alphanumeric code in PHP
Gareth Heyes has tried out an interesting experiment - running non-alphanumeric code in PHP using only octal escapes.So a small php shell was tweeted around and it inspired me to investigate a way to execute non-alphanumeric code. First off I started with the idea of using octal escapes in PHP and constructing the escape so for example: 107 is "G" if I could construct the "107" and add the backslash to the beginning maybe I could construct "G".A snippet of example code is included showing his octal-based...

Derick Rethans' Blog: Xdebug's Code Coverage speedup

Derick Rethans' Blog: Xdebug's Code Coverage speedup
Derick Rethans has a new post to his blog today talking about some work that's been done to speed up XDebug's code coverage generation. Changes in the coming 2.2 release have some improvements that make things perform better and put less stress on PHP in the process.Code coverage tells you how much of your code base is actually being tested by your unit tests. It's a very useful feature, but sadly, it slows down PHP's execution quite a lot. One part of this slowdown is the overhead to record the...

King Foo Blog: Using Complex Type with Zend_Soap

King Foo Blog: Using Complex Type with Zend_Soap
New from the King Foo blog there's a tutorial showing how to use complex types in a SOAP request with Zend_Soap, a component of the Zend Framework.To be able to use complex types with Soap requests, they need to be fully defined in the WSDL file. Zend_Soap can automate this process, if you know how to define those complex types. Let us start without it Zend_Soap's magic and compare it with a fully discovered complex request type afterwards.In their example, they have a collection of books (objects) that...