Felix Geisendorfer has posted a new more helpful hints to the Debuggable blog for the CakePHP developers out there. Here's the most recent:
Check out their PHP and CakePHP category on the blog for more great articles and tips.
![]() |
|||||
|
|||||
Sections
![]()
Recent Jobs
News Archive
|
Debuggable Blog: More CakePHP Tips/Behaviors September 02, 2008 @ 12:04:03
Felix Geisendorfer has posted a new more helpful hints to the Debuggable blog for the CakePHP developers out there. Here's the most recent: Check out their PHP and CakePHP category on the blog for more great articles and tips.
Zend Developer Zone: Why Should I Care What Server My Application is Running On? July 15, 2008 @ 13:12:32
On the Zend Developer Zone there's a new article that looks to answer the question in its title - "Why should I care what server my application is running on?" (by Eddo Rotman) Imagine this - you develop an application on your machine and then, when you come to deploy it to the production server, all of a sudden, you encounter various errors and failures. Or maybe, when you decide to switch your hosting provider, your application stops behaving the way it should. How about this -... one day, out of the blue (well, out of your IT manager's whim) your application just misbehaves. Sounds familiar? Times like can never be completely avoided (yes, there'll always be bugs) but you can take some steps to help prevent most of the major failing points. He points out some of the key configuration directives to watch out for, differences in some functions' responses based on the OS, and the differences in character sets between a unix-based and Windows based environment (like rn versus just n).
Jaisen Methai's Blog: Stop including class files and use __autoload() instead July 02, 2008 @ 11:11:50
On his blog, Jaisen Methai posted about a very handy feature of PHP5 - the __autoload function. It's one of the gems in PHP that I find to be relatively under used. It's common for PHP applications to break out classes into their own files. This becomes cumbersome when working on large projects as you wind up with numerous include/require calls for any given page. He shows an example of its usage (loading class files dynamically from a specified directory) and mentions how it can help to make your code a lot less ugly. Comments on the post range in topics - from comparing it to include paths, how the idea was borrowed from PEAR, and how proper naming conventions can make its use even easier.
Mike Willbanks' Blog: PHP Performance Series Maximizing Your MySQL Database June 19, 2008 @ 12:01:24
Mike Willbanks has posted another part in his "PHP performance" series today. In his previous article, he talked about caching techniques including things like opcode caching and database memory tables. This time he talks about getting the most out of your MySQL database. Application level SQL performance is much different than the performance of the SQL query itself but rather how it has been designed to work in the application. Many of the items I will be addressing in this area is designing your application to make less queries thus improving scalability and likely performance. However, performance does not always equal scalability as the same with scalability does not always equal performance. He looks at a few different topics like lazy connections, iterating queries, need-based selects, normalization and a few simple things that you can apply to every SQL your application uses to optimize it as much as possible.
Alex Netkachov's Blog: BAT file tips June 06, 2008 @ 07:58:08
Alex Netkachov has updated a post he made a while back (in 2006 in fact) about making Windows batch files (.BAT) that would do the same thing as some of the functions in PHP. He's added two more to it today - one for string replace and another for splitting a string. The replace is as simple three line call, much the same as PHP's and the split call, while a bit more complex, is still pretty straight forward (it just needs a few extra variables). Other methods in the post include a "switch" method, defining a procedure and updating variable by its name.
Debuggable Blog: Make your life easier with these five CakePHP Quicktips May 29, 2008 @ 15:23:48
Tim Koschutzki has five quick tips for the CakePHP users out there to help make your lives just a bit easier:
Each tip comes complete with code and a brief explanation of its use.
Tiffany Brown's Blog: Debugging tip "Disallowed Key Character" error in CodeIgniter May 07, 2008 @ 12:09:29
CodeIgniter fans might want to take note of this tip from Tiffany Brown concerning "disallowed key character" error messages. After 6 hours of massive anxiety, stress, near tears, one pound on my desk, and some hair pulling, I tracked down the source of a nagging Disallowed Key Character error that I received while using CodeIgniter: an extra line break. She eventually figured out that the newline and carriage return characters are not allowed as a part of the framework. Unfortunately, it was a random newline after a controller's code that did it for her.
PHPBuilder.com: Validating PHP User Sessions April 07, 2008 @ 11:12:33
On PHPBuilder.com, there's a new tutorial about validating user sessions - ensuring that data in your user's sessions is valid and isn't an attack trying to sneak in. In a nutshell, sessions are the way that we "maintain state" from one page to the next, that is, how we identify specific users across multiple page requests. The ability to track users as they go from one page to the next using sessions allows us a number of options, such as tracking where they are going (web statistics) or to verify credentials for a specific section of the site. First, there's a little mini-intro to sessions for those unsure on their use. It's followed by a look at some session vulnerabilities that could be introduces by malicious users looking to break things on your site (including HTML/Javascript injection, as their example shows). They recommend a three step plan to get started with the validation of your user's sessions - making it easy for users to log out when they want to, use unique aspects of the remote machine to define the session and to validate all user input, especially things that will be put into a session variable.
PHPClasses.org: Top 10 tips to get better PHP jobs April 03, 2008 @ 12:58:01
On the PHPClasses.org blog, there's an article from Manuel Lemos that gives ten tips trying to help you get a better PHP job (they're all the way at the bottom, just scroll down). The list of tips include things like:
Check out the post for more great tips.
Matthew Weir O'Phinney's Blog: Vim Productivity Tips for PHP Developers March 24, 2008 @ 07:58:31
Matthew Weir O'Phinney has posted a few handy tips for PHP developers fond of working in one of the most powerful command-line editors, Vim. I use Vim for all my editing needs -- TODO lists, email, presentation outlines, coding in any language... everything. So, I thought I'd start sharing some of my vim habits and tools with others, particularly those that pertain to using Vim with PHP. He includes tips for things like mapping keystrokes (to the PHP interpreter and linter), using the Project plugin to make setting up projects easier and a mention (again) of ctags. |
Community Events
Don't see your event here? Let us know! |
|||
|
code conference example book releases PHP5 mysql framework PEAR application ajax zend release database job zendframework security cakephp developer package |
|||||
| All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework | |||||