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
Oct 10, 2006 @ 14: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.

tagged: pear date class time zone convert offset pear date class time zone convert offset

Link:

Builder.com:
Get the correct time by converting between time zones with PHP and PEAR
Oct 10, 2006 @ 14: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.

tagged: pear date class time zone convert offset pear date class time zone convert offset

Link:

Zend Developer Zone:
Write for DevZone, See the World! (at least our little corner of it)
Jun 30, 2006 @ 11: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!

tagged: zend developer zone write article contest conference free zend developer zone write article contest conference free

Link:

Zend Developer Zone:
Write for DevZone, See the World! (at least our little corner of it)
Jun 30, 2006 @ 11: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!

tagged: zend developer zone write article contest conference free zend developer zone write article contest conference free

Link:

PHP-Tools Blog:
XML_Parser tutorial published
Jun 05, 2006 @ 10: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.

tagged: xml_parser tutorial published zend developer zone xml_parser tutorial published zend developer zone

Link:

PHP-Tools Blog:
XML_Parser tutorial published
Jun 05, 2006 @ 10: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.

tagged: xml_parser tutorial published zend developer zone xml_parser tutorial published zend developer zone

Link:

Zend Developer Zone:
A Week in PHPWorld #7
May 31, 2006 @ 10: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.

tagged: weekly summary zend developer zone issue7 phpworld weekly summary zend developer zone issue7 phpworld

Link:

Zend Developer Zone:
A Week in PHPWorld #7
May 31, 2006 @ 10: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.

tagged: weekly summary zend developer zone issue7 phpworld weekly summary zend developer zone issue7 phpworld

Link:

Zend Developer Zone:
Interactive Shells, They Arent's Just for Seafood Anymore.
May 11, 2006 @ 11: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.

tagged: zend developer zone interactive shell php_shell phpa phpinteractive zend developer zone interactive shell php_shell phpa phpinteractive

Link:

Zend Developer Zone:
Interactive Shells, They Arent's Just for Seafood Anymore.
May 11, 2006 @ 11: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.

tagged: zend developer zone interactive shell php_shell phpa phpinteractive zend developer zone interactive shell php_shell phpa phpinteractive

Link:


Trending Topics: