Entries Tagged ‘PHP’:

make test every PHP version and send feedback

Since David Coallier’s talk during PHPBenelux, I realized the importance of running make test on all PHP releases and send feedback to PHP. It is so easy, that I will run it from now on every time a new release is announced. If you’re running on Mac, you might want to install Xcode, so you can [...]

Tags: , , , ,

Leave a Comment

SOAP-ERROR: Parsing WSDL

If you’re writing or consuming webservices with PHP SOAP, it’s possible you run into the SOAP-ERROR: Parsing WSDL problem once. The complete error string is: SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘http://host/service?wsdl’ : <specific error> If you copy and paste the url (including the ?wsdl parameter) in the browser and you see the WSDL file, [...]

Tags: , , , , , ,

Leave a Comment

Random PHP function explained

A few weeks ago, Jamie Bicknell notified me he read my article about the Random PHP function. Because I didn’t publish any code, he wrote a 3 line implementation of how he would fetch the functions for the randomness. I promised him I would publish the code that weekend, and here we are, a few [...]

Tags: , , , , , , , , ,

Leave a Comment

phpBenelux

As you can see in my Blogroll panel, on my homepage, profile and LinkedIn, I’m a proud member of phpBenelux. Tuesday there was another meeting, this time in the offices of Netlog, with talks from Ivo Jansch about “PHP and the Cloud” and Felix De Vliegher about “High gear PHP with Gearman”. Because it took [...]

Tags: , , , , , ,

Leave a Comment

php msort() – multidimensional array sort

There have been several moments where I had a rowset from a database as a PHP array, and I had to sort it based on some columns. $tickets = array(    array(        ’id’ => 13,        ’owner’ => ’jachim’,        ’time’ => ’2009-09-25 10:39:42.011612′,        ’project’ => ’jachim.be’,        ’title’ => ’Some random ticket’    ),    array(        ’id’ => 31,        ’owner’ => ’jachim’,        ’time’ => ’2009-09-24 14:38:47.945020′,        ’project’ => ’joggink.be’,        ’title’ => ’Some other random ticket’    ),    array(        ’id’ => 22,        ’owner’ => ’root’,        ’time’ => ’2009-09-24 10:58:02.904198′,        ’project’ => ’joggink.be’,        ’title’ => ’A specific ticket’    )); I searched for functions for a while, and even try to understand/use the array_multisort function, but I never managed to get something working on a simple array [...]

Tags: , , , ,

Comments (6)

Random PHP function

To explore new things, I sometimes use the ‘Random article‘ link on Wikipedia. It is a simple and basic principle, but it gets you to articles you would never get by just browsing the site. I was looking for something that did the same job for the php.net site, but could not find anything. As [...]

Tags: , , , , , , , ,

Leave a Comment

ini_restore() and str_replace()

Today I’ve found a new function (new for me, that is). The function is called ini_restore(). It’s a small and simple function call, but it’s just cool to use built-in functions and save some typing and variables. I use ini_set() from time to time in large scripts where I know it will take a while [...]

Tags: , , , ,

Leave a Comment