News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Builder.com:
Get the correct time by converting between time zones with PHP and PEAR
October 10, 2006 @ 09:38:00

On the Builder.com website, there's a new tutorial demonstrating how to use the PEAR Date class to make switching between time zones a snap.

To be fair, PHP has built-in time zone functions to help with this, but these aren't particularly intuitive and require a fair amount of time to get used to. A quicker alternative is to use the PEAR Date class, which comes with built-in support for time zones and is, by far, the simplest way to perform these conversions.

This tutorial will teach you how to convert temporal values between time zones with the PEAR Date class. It assumes that you have a working Apache and PHP installation and that the PEAR Date class has been correctly installed.

They go with a few simple examples to introduce you to how things work:

  • just taking in and echoing back out the date
  • taking in the date and echoing it back out in a different format
  • making a simple time zone conversion
  • convert the timestamp to local time
  • finding the offset for the time stamp from GMT
  • adding and subtracting time stamps
all complete with the (simple) code to perform them all.

0 comments voice your opinion now!
pear date class time zone convert offset pear date class time zone convert offset


Zend Developer Zone:
Write for DevZone, See the World! (at least our little corner of it)
June 30, 2006 @ 06:16:50

All aspiring PHP authors out there, listen up - the Zend Developer Zone has posted this new article today with a real deal for anyone looking to not only get published but also be entered for a chance to win a free ticket into the Zend/PHP Conference & Expo in the fall.

Here's how this works: Scrape around in the closets of you mind and find that PHP tutorial you always wanted to write. The subject is wide open as long as it is PHP. Once you have your idea in your head, transfer it to an email and send it to me. No need to send over the entire article, just an outline. We'll look it over carefully and if it looks like something other DevZoners would like, we'll start you on your way down the road to fame.

Articles selected will recieve a DevZone t-shirt from Zend and be entered into the drawing for the free ride to the conference. There will also be one grand prize winner (as drawn September 4th) that will recieve:

  • Air-fair from anywhere in the continental United States to the beautiful San Jose, CA.
  • Hotel accommodations in The Doubletree Hotel; the conference hotel.
  • Registration for the Zend/PHP Conference and Expo.

So, what are you waiting for? Head over to register and get started on those articles today!

0 comments voice your opinion now!
zend developer zone write article contest conference free zend developer zone write article contest conference free


PHP-Tools Blog:
XML_Parser tutorial published
June 05, 2006 @ 05:47:22

Stephan Schmidt has posted information today about a tutorial he'd previously written for the Zend website concerning his XML_Parser PEAR package he maintains, but never saw publication on Zend's site.

This tutorial was supposed to be published in the PEAR section of Zend's developer zone, as they planned on sponsoring PEAR developers that were willing to write tutorials for their packages. Sadly enough this tutorial has never been published, although Zend promised me to do so.

When cleaning up my hard disk yesterday, I stumbled across the tutorial and decided, that it would probably be better to publish it on my own website instead of waiting for Zend to finally put it online. So if you still are using PHP4 or prefer SAX-based parsing although PHP5 offers a decent DOM implementation, you can now find the XML_Parser tutorial on my website.

You can head directly over to the tutorial via this link to read up on this great package.

0 comments voice your opinion now!
xml_parser tutorial published zend developer zone xml_parser tutorial published zend developer zone


Zend Developer Zone:
A Week in PHPWorld #7
May 31, 2006 @ 05:48:14

Wolfgang Drews is back again this week with his latest look at everything happening from last week in the world of PHP in this issue of "A Week in PHPWorld", issue #7.

Among the things mentioned this week there is:

  • talk of the next release candidate for PHP 4.4.3 (to be found here)
  • the seven PHP-related students that made it into Google's "Summer of Code"
  • OmnitIT's acquisition of Brain Bulb
  • mentions of several of the upcoming conferences
  • php|architect's latest issue
  • and several other various contributions from the rest of the community

Be sure to check out all of the details on each of these items (and a few more) in this edition.

0 comments voice your opinion now!
weekly summary zend developer zone issue7 phpworld weekly summary zend developer zone issue7 phpworld


Zend Developer Zone:
Interactive Shells, They Arent's Just for Seafood Anymore.
May 11, 2006 @ 06:46:43

We mentioned briefly in a post a while back about the latest offering for those PHP developers out there that were looking for a more robust shell to work in. One has been developed by Jan Kneschke and in this new post from the Zend Developer Zone, it's compared to two other offerings, all going for the same goal.

I started my programming career (many moons ago) coding in FoxPro. [...] In the FoxPro command window I can execute commands, instantiate objects, explore properties; in short, just about everything I can do in FoxPro itself. It's a great prototyping tool for all the non-visual stuff. I've missed the immediacy of the command window in every other language I've worked in. I no longer miss it in PHP!

There's mention of the default interactive shell (with the --with-readline) that comes with PHP5 installs, but it's just not as full-featured as many would like. Thankfully, there are three alternatives presented - php_shell, phpa, and phpinteractive. For each, there's a bit of a description and some of Cal's opinions on how well they work.

0 comments voice your opinion now!
zend developer zone interactive shell php_shell phpa phpinteractive zend developer zone interactive shell php_shell phpa phpinteractive


Zend Developer Zone:
Integrating Smarty and eZ Components with the Zend Framework
April 17, 2006 @ 13:20:29

In a follow-up to their previous article on Smarty integration with the Zend Framework, the Zend Developer Zone has posted this new item to act as an update.

I want to address some of the issues in the comments of the first part and add some further information on how to setup your application to use the Travello_View_Smarty class. Along the way you learn how to integrate classes of the ezComponents.

He uses the configuration class from the eZ Components framework to configure the application, and an __autoload to get it working. There's a bit on how to set up the configuration with the library, and how to use that config to remove the Smarty integration's dependence on the data being passed directly to the view. Now it can be defined dynamically and pulled in via the constructor they've created.

0 comments voice your opinion now!
zend developer zone smarty integrate ez components zend developer zone smarty integrate ez components


Zend Developer Zone:
A Week in PHPWorld #2
April 17, 2006 @ 13:00:52

Wolfgang Drews has posted Weekly Summary #2 for this poast week on it's new home, the Zend Developer Zone.

Among the items that happened from this past week, he includes:

  • the four security holes found in PHP 5.1.3 that held back its release
  • Zend's new consultancy services offered in Germany
  • the upcoming release of a new preview version of the Zend Framework
  • an agreement between MySQL and Oracle to allow them to still sell/support the InnoDB storage engine
  • and several other conference, security, and community notes.

Be sure to check out the Zend Developer Zone each week to check up on the latest summaries each Monday!

0 comments voice your opinion now!
weekly summary zend developer zone monday weekly summary zend developer zone monday



Community Events





Don't see your event here?
Let us know!


release developer framework install laravel wordpress introduction code list unittest community configure interview language testing refactor opinion threedevsandamaybe series podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework