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...
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...
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 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 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...
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...
Popular posts from PHPDeveloper.org for the past week:Community News: PHP 5.4.0beta1 Released for Testing
XPertDeveloper.com: PHP Debugging Tools
Lukas Smith's Blog: My PHP framework winner predictions
Lorna Mitchell's Blog: ArrayAccess vs ArrayObject
Kevin Schroeder's Blog: Zend Framework 2 Event Manager
Michael Nitschinger's Blog: Quick Tip: Lithium Redirect
Artur Ejsmont's Blog: How to properly secure remote API calls over SSL from PHP code
PHPMaster.com: Introduction to PHP Arrays
Lars Tesmer's Blog:...
Xdebug's Code Coverage speedup
London, UK
Friday, September 23rd 2011, 09:23 BST
Besides a debugging and development aid, Xdebug also implements the back-end code to provide code coverage information for use with PHPUnit. 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 information internally, but another part is because...
Phix now has a new home, as I've recently left Gradwell. And a new PEAR channel. And an awesome new logo thanks to Jeremy and Kerry from Magma Digital. And a roadmap on Trello.
And, if you're using either Ubuntu or Fedora as your dev desktop/laptop, a new one-line installer that takes care of those pesky system-level dependencies that the PEAR Installer can't help you with :)
How To Move To The New PEAR Channel
If you have already installed an older version of Phix from pear.gradwell.com, you'll need to...
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components.
This is a guest post by Martin WernstAYhl. Martin is a university student at Chalmers University of Technology, Sweden, currently studying the first year of Engineering Physics. He...
On the Liip blog today, there's a quick post about integrating Symfony2 and Magento, the popular PHP-based ecommerce platform.So last week four developers sat together on a regular Hackday to see what's needed to hook up Magento into Symfony. To make this short the outcome is a Magento bundle for Symfony2. When we met in the morning we weren't even sure what exactly to try out but soon agreed on implementing a Symfony authentication which uses the Magento customer database.The post talks about some of...
The Zend Developer Zone has a new post about this month's Zend Framework Bug Hunt Days happening today (the 22nd), 23rd and 24th:For those who haven't put the recurring event in their calendar, the Zend Framework Monthly Bug-hunt is here again! This Thursday, Friday and Saturday (the 22nd, 23rd and 24th of September), we'll be hosting our monthly bug hunt. For those of you unfamiliar with the event, each month, we organize the community to help reduce the number of open issues reported against the...
Go to Live Demo
A
Monitoring your web application is essential for professional maintenance and development. Especially if you have a high load on your website and you want to keep the current users on your site, you definitely should stay alert for problems
and be able to react fast in case of problems. Monitoring is also crucial for A/B tests, since you have to evaluate somehow which version
of your website performs better. Many big players also measure constantly how much revenue the website...
On PHPBuilder.com today there's a new article from Jason Gilmore introducing you to namespaces in PHP 5.3+ development. Namespaces make it simpler to separate out your code into functional pieces and help keep it organized.The inclusion of namespace support within PHP 5.3 effectively brought the need for gripes and workarounds to a halt, however adoption of this exciting new feature has seemed surprisingly slow in the more than two years since its release. [...] The utility of this new feature is simply...
XPertDeveloper.com has a quick new post looking at a function that might be overlooked until it suddenly becomes just what you need - clearstatecache for clearing file state information in the current script.For the functions like is_file(), file_exists(), etc PHP caches the result of this function for each file for faster performance if function called again. But in some cases you want to clear this cached information, for the task like getting the information of the same file multiple times in same...
I keep coming across code like this (lifted, verbatim, from an OSS project I've been working with recently):
$a = $num * $coeff + $_SANITIZED_GET['val'];What, in the name of all that is good and just, is a€oa?a€¯ Or, for that matter, what are a€onuma€¯ and a€ocoeff?a€¯Computer manufacturers, OS vendors, and programming tool developers have worked for decades to give us the ability to create identifiers of arbitrary length. Personally, I'd much rather see someReallyLongNameThatLooksALittleRidiculous than...
").($_[+""]|"").($_[+""]^"");
SitePoint's PHPMaster has a new post today, the third part of a series helping you get your application from "zero to cloud" on an Amazon EC2 setup. In this latest post they wrap things up by showing how to set up the full lamp stack on the remote server. Here's part one and two that lead up to this latest part.This is the final article in a three part series focused on setting up EC2 as a sandbox for application developers. I assume you have an AWS account with Amazon; if you don't, please read Part 1...
Here's what was popular in the PHP community one year ago today:Developer.com: Build Your First PHP for Android Application
Gonzalo Ayuso's Blog: Live video streaming with PHP
Matthew Turland's Blog: "Web Scraping with PHP" Now Available in Print!
Kevin Schroeder's Blog: You want to do WHAT with PHP? Chapter 8
Ibuildings techPortal: Building an Continuous Integration Server for PHP with Hudson
Jordi Boggiano's Blog: PHP Console in Your Browser
Community News: SymfonyDay 2010 Registration Discount
Dennis...
MODX: A CMS Framework Designed with PHP Developers in Mind
By Bob Ray
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 easily use it to build your own content management system customized to your needs.
|
Latest PHP Tweets
|