Archive for June 11th, 2007
PHP Developer - June 11th, 2007
DevShed concludes their series looking at the use of PDO objects in PHP5 with this last tutorial focusing on the use of prepared queries in your PHP application.
In this last tutorial in the series I’m going to show you how to run prepared queries, but in this case we’re going to include named parameters into them. Additionally, I’m going to take a quick look at some additional methods bundled with this extension. These new methods can be really useful for working with transactions, in case you want to use this feature with the database system of your choice.
They start with a simple approach to using prepared queries before moving on to an alternate method - binding parameters to the query via bindParam. They wrap up the article with a look at using transactions, both commits and rollbacks.
Continue Reading ·
PHP Developer - June 11th, 2007
On the Sanisoft blog today, there’s a quick tutorial demonstrating how to create a multilingual application with the CakePHP framework:
There are basic two ways to creating a multilingual app in traditional PHP […] CakePHP V1.2 is the framework which allows you to take the quantum leap of using gettext like functionality with minimum of hassles and at the same time address the common problems which a PHP programmer faces while creating multilingual apps.
They give an example of a simple translation of a sentence (including working with .po files). They show how to integrate the example string, create the .po file with the translation and configure the language to pull the correct phrasing to display to the page.
Continue Reading ·
PHP Developer - June 11th, 2007
Cristian Bichis sent along a message today reminding us about the unofficial Zend Framework forums that’s been started over on zfforums.com:
This is the only forum dedicated to the Zend Framework (in English) and several users have already joined with lots of topics started including MVC, Zend_Db, Concepts related to the framework and Ideas about it and its future. So, join up yourself and talk with other Zend Framework developers at zfforums.com.
There’s already some decent activity over there - around 120 members with over 350 posts going - not too bad considering they’ve just started up. Head on over, get yourself signed up and start participating in the discussion to help build these forums into a great resource for Zend Framework developers everywhere.
Continue Reading ·
PHP Developer - June 11th, 2007
In a new tutorial posted to his blog today, Pierre-Alain Joye shows how to generate backtraces on a Windows machine without the need for a compiler installed.
How to get a back trace on windows without having to compile PHP has been an impossible task for many of us. The difficulty was to first succeed to compile php (given that you have a visual C++ installed). If you are in the middle of a bug hunting session, no need to say that setting up a windows build system is the last thing you like, especially if it is your first time. Thanks to Edin’s window binary and MS Diagnostic Debug , it is now possible to have a backtrace in a couple of clicks.
To use the method you will need a few pieces of software to help out but all are available for free. Next up are the steps to get things set up (simple) and the creation of the backtrace to catch the error, complete with screenshots for the whole way. The end result is a nice, pretty error message output to the browser (Internet Explorer) that also dumps the backtrace for you to use.
Continue Reading ·
PHP Developer - June 11th, 2007
PHPBuilder.com has a quick tutorial posted today about getting Apache and PHP installed on your Windows machine easily.
If you are on this site, we’re sure that you already know that PHP is a server side web programming language. Its purpose is very similar to ASP, but in my opinion, it’s better. There are more databases available to use with it and ASP can only communicate with Access and SQL servers. PHP can communicate with SQL Server, MySQL, mSQL, and several others, but that is not the topic of this tutorial.
The tutorial is broken up into a few simple steps:
- Installing and configuring Apache
- Installing PHP
- Configuring Apache to work with PHP
And you’re done - test it by making a sample PHP page (like a phpinfo() one) and see if everything’s up and working.
Continue Reading ·