May 8th, 2008
Today has been posted new part in tutorial series of creating blog application using Zend Framework. Pádraic Brady in this part shows how to use Zend_form and Zend_Auth libraries.
In the previous entry, we created a new Administration Module to hold blog management functionality, added a Module specific layout for it, and discussed the upcoming need to ensure this is only accessible by authorised Authors. In this entry I’ll unravel some of Zend_Form’s mysteries in adding a login form, before using Zend_Auth to implement authentication for authors.
In this part you would find many grate information how to build authentication system for your application using Zend Framework.
Post tagged with: authentication, form, framework, zend
Posted in
Advanced,
Beginners |
No Comments »
May 7th, 2008
Sometimes PHP developers need execute some kind of shell commands. Sometimes these commands has user input so it is logical that there can be some security holes. To avoid such kind of security holes SecuriTeam published new article describing some PHP build in functions:
In PHP there exist two functions to escape shell commands or arguments to shell commands that are used in PHP applications to protect against shell command injection vulnerabilities.
Post tagged with: php, security, shell
Posted in
Advanced |
No Comments »
May 7th, 2008
Adam Charnock on his blog wrote new post how you can debug your PHP applications. In article is shown 9 debugging methods you should use.
Isn’t writing new code great? Wouldn’t the world be a better place if all were ever had to do is write software from scratch, not having to worry about methods of classes past? Unfortunately, we all know that this is not the case. In fact, estimates say that we spend around 80% of our programming time maintaining old code. So for this blog post will be trying to tackle that 80%, and I will see what I can do to make it less painful.
All methods in his articles comes with examples how to use them. In article author shows from basic debugging to advanced debugging tools.
Post tagged with: cede, debug, method, php
Posted in
Advanced,
Beginners |
No Comments »
May 7th, 2008
If you looking for word counter class, just found nice tool to count words in your articles or wherever you want.
I was reading Hasin Bhai’s New book Object Oriented Programming with PHP5.In chapter 2 i got a nice example of OOP.Its a word counter.Its a nice tool actually and pretty little too.Here is that example.
In this tutorial you would learn some object orientated programming techniques.
Post tagged with: count, word, wordcounter
Posted in
Advanced,
Beginners |
No Comments »
May 7th, 2008
Nathan A. Good in IBM developers published new article about PHP v6 new features and syntax improvements. For all PHP coders it is important to know these changes, because one day our projects that worked fine on php v4 or v5 may not work.
PHP’s next edition, V6, includes new features and syntax improvements that will make it easier to use from an object-oriented standpoint. Other important features, such as Unicode support in many of the core functions, mean that PHP V6 is positioned for better international support and robustness.
Author gives some examples what would be changed and how to avoid code errors. We should prepare our code for next generation.
Post tagged with: features, php, syntax
Posted in
Advanced,
Beginners |
No Comments »
May 6th, 2008
Skien in his blog added great update of how to detect visitors timezone by his ip address. I think this is very important for international sites, portals or forums, where user is often confused when time is different on site and on his computers clock.
Through Planet PHP I found an article on Pre-populating forms with the timezone. I’d normally add a comment instead, but the comment would almost be larger then the original post, so I am instead writing up an entry myself. The post describes several ways to obtain the user’s timezone and use that to pre-fill a form. None of them are working properly though. I’ll try to explain for each of them why not, but first of all it is important to know what a timezone actually is.
In this article you will find example of how you can integrate this trick to your site, forum, portal or even blog.
Post tagged with: blog, forum, ip, timezone
Posted in
Advanced,
Beginners |
No Comments »
May 6th, 2008
If you are looking for step by step PHP tutorials GeekInterview.com has posted new article where author collected list of step by step PHP tutorials.
PHP Introduction
PHP Tutorial - Introduction In this tutorial you will learn about PHP - Introduction to PHP, What you should already know? What’s PHP? What’s the difference between PHP and HTML? When to use PHP?
PHP Installation
PHP Tutorial - Installation In this tutorial you will learn about PHP - Installation steps involved in Installing Apache server, Installing PHP 4 and Installing PHP 5.
PHP Syntax
PHP Tutorial - Syntax In this tutorial you will learn about PHP Syntax - Syntax for Writing a script, Scripts VS. File and Comments
Post tagged with: php, tutorials
Posted in
Beginners |
No Comments »
May 6th, 2008
Akash Mehta in Developer Tutorials site posted new post in object orientated programming. Article shows how developer can easy setup their object iteration with couple simple code lines.
The Standard PHP Library (SPL) religiously utilises iteration for some outstanding results (and great code simplicity). PHP’s native language constructs are very readable, and by simplifying our code we can build applications faster and more effectively. The SPL demonstrates this with the power of its classes integrating with language constructs, such as the foreach loop.
Author gives simple example of how you can use objects iteration in your php applications. Also object iteration makes code more readable.
Post tagged with: code, iteration, object, php
Posted in
Advanced,
Beginners |
No Comments »
May 6th, 2008
Translation2 was just realized in PEAR package. How to install it and learn basic usage of it follow this link to Translation2 tutorial.
One recurring topic on many PHP forums is how to deal with the internationalization (i18n) of a website. In particular, an hot question is where to store the translations. Some people like to have them in the database, as it’s more convenient to access, others prefer the speed of gettext but are not too enthusiastic about the editing tools, many simply store them in INI files or as PHP arrays. Other people wonder what is the most efficient solution and if they’re able to implement it.
Post tagged with: PEAR, php
Posted in
Advanced,
Beginners |
No Comments »
May 6th, 2008
Zend Framework usage grows very fast. Zend Developer Zone launched new tutorial of how to use Zend_Form module.
Zend_Form has been lauded by many as a welcome addition to Zend Framework, and a flexible solution to the problem of forms. That said, one point of flexibility it offers has proved to be a pain point for many developers: decorators. This tutorial aims to shed some light on decorators, as well as provide strategies for creating your own decorators and combining them in creative ways to customize the output your forms generate.
This complete tutorial shows how you can create good looking forms in your ZF applications. Zend_Form is new way of fast creating forms for PHP coders.
Post tagged with: application, form, php, tutorial, zend
Posted in
Advanced |
No Comments »