News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Eirik Hoem's Blog:
Setting xsitype for objects sent over SOAP (inheritance)
March 19, 2008 @ 10:26:27

Eirik Hoem has posted a tip for all of the PHP SOAP developers out there - a method for setting the xsi:type correctly for objects sent in the message.

I spent quite some time looking for info on how to specify the xsi:type for the objects, and I finally came across SoapVar. I created a base class which the SOAP classes extended. A method called pack is responsible for setting xsi:type.

In his example, he creates a BaseClass to work from and builds a createCustomer class on top of it, defining a setCustomer function inside. When the new Person is created, a new Customer is too complete with the correctly formatted type on the object.

0 comments voice your opinion now!
soap extension soapvar baseclass customer person xsitype



Marco Tabini's Blog:
Now showing PHP's true colours
August 30, 2007 @ 12:27:00

Marco Tabini (of php|architect) has posted some thoughts to his blog about the PHP4 end-of-life announcement and its relations to the current push to go PHP5 - mainly how it relates to hosting providers.

I'm sure that a large number are owners of small hosting firms - which, by far, provide the vast majority of PHP-powered websites that Netcraft carefully tracks for us - that sell cheap shared hosting. [...] If you provide shared-hosting plans, it's likely that your servers are still running PHP 4. Upgrading to PHP 5 is a logistical nightmare for two reasons: first, you don't necessarily know that you'll be able to properly set up and secure your systems; second, you don't know that your customers' applications will keep on running.

Both reasons can cause very different kinds of hassles for the hoster, especially when it comes to their customers. As Marco puts it "hell hath no fury like a customer scorned". When things are going smoothly, everything's good, but the second that you try to explain that the update is what's good for them, all they see are things breaking and freak out.

He suggests only one real solution - make the move and tell the customers now that things are changing. Help them all you can (with information about updated software and resources) but ultimately it's up to them to make the change.

0 comments voice your opinion now!
php4 php5 upgrade hosting provider customer endoflife php4 php5 upgrade hosting provider customer endoflife



Community Events











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


code zendframework application releases PEAR release package example PHP5 job security developer zend framework cakephp book ajax mysql conference database

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