Steve Sonius

PHP Web Developer :: DJ :: Sydney Australia

January 15, 2013
by sonius
0 comments

• character fix

I had a problem where my web pages were displaying weird UTF-8 characters with php.

• Industry bodies
• Volunteer organisations
• Federal and state government bodies

I found this solution that worked for me:

IMPORTANT: when converting UTF8 data that contains the EURO sign DON'T USE utf_decode function.
utf_decode converts the data into ISO-8859-1 charset. But ISO-8859-1 charset does not contain the EURO sign, therefor the EURO sign will be converted into a question mark character '?'
In order to convert properly UTF8 data with EURO sign you must use:
iconv("UTF-8", "CP1252", $data)

January 9, 2013
by sonius
0 comments

Mr Sonius’ influences 20130801 podcast

Over 23 years of collecting and playing music there have been some key tracks that have influenced me in the past (and present). For those that know me I am a little partial to the ambient dub genre.. here are some of my faves of that style…

Steve Sonius’s Cloudcasts on Mixcloud

 

DOWNLOAD

 

DOWNLOAD

 

 

October 14, 2012
by sonius
0 comments

Sunday Session – 1

  • Ninja Tune_AntiPop Consortium_Volcano_Four Tet Remix
  • Various – Track 14
  • Tru Thoughts-Stonephace-Stonephace-Original Mix
  • Roxy Music- The Right Stuff
  • RongDFA-Research-East West Axis-Original Mix
  • Sutekh – Track 3
  • Nitzer Ebb – Track 9
  • Relaxed Muscle – Track 9
  • The Stone Roses – Driving South
  • Grace Jones – Nipple to the Bottle
  • Love Tattoo – Manipulation
  • Inxs – Wishing Well (Intrumental)
  • Instruments Of Rapture_Craig Bratley_Birdshell_6Th Borough Project Shell Toe Remix
  • I Records_Kevin Yost_Creep_Marco Hefner Remix
  • Miguel Migs – Fire (Feat Junior Reid)
  • Chaka Khan- Eye to Eye
  • ESL Music_Ursula 1000_Tropicadelica feat Natalia Clavier_Original Mix

DOWNLOAD

March 8, 2012
by sonius
0 comments

Podcast – Slowmotion 2012-03-08

 

DOWNLOAD 154mg

 

  1. The National Bank_Home_Diskjokke Remix
  2. Kompakt_Mugwump_Losing Game_Original Mix
  3. 01_Microscope Contents
  4. Relish Records-Headman_Dieter Meier-Gimme-Kangos Autostrada Dei Laghi Mix
  5. Tirk_The Love Supreme_Waiting For The Love feat Benjamin James Smith_Mushrooms Project Remix
  6. Ghostly International_Matthew Dear_Little People Black City_Original Mix
  7. Drumpoet Community-Hunee-Took My Love-Original Mix
  8. Paper Recordings_Crazy Penis_A Little Something_PBR Streetgang edit
  9. Compost_Yannah_Eddy_Not What You Do feat Ras Tweed_Yosa feat Shu Okuyma Remix
  10. Rotters Golf Club_Andrew Weatherall_Brother Johnstons Travelling Disco Consultancy_Original Mix

February 23, 2012
by sonius
0 comments

wsdl2php plugin for symfony1.0 to symfony1.4

I needed something that would convert WSDL to useable php classes so I sould consume web services.

I had found this pear package called wsdl2php and modified the class to work as a symfony plugin.

You can download the plugin here

How to use.

  1. Unzip the folder, wsdl2phpPlugin, into your projects plugin dir
  2. Depending on your version of symfony you may ned to activate the plugin by adding
    $this->enablePlugins('wsdl2phpPlugin');

    to your ProjectConfiguration.class.php file

  3. In your action or static class simpily call the convert function, for example:
     wsdl2php::convert('http://www.webservicex.net/CurrencyConvertor.asmx?WSDL');
  4. The new class will be written to the projects main lib dir:
    eg: CurrencyConvertor.class.php
  5. Add any custom functionality in mySoapClient.class.php
  6. clear cache and your ready to go.

this is how this particular example is used:

 

$ConversionRate = new ConversionRate();
$ConversionRate->FromCurrency = Currency::USD;
$ConversionRate->ToCurrency = Currency::AUD;

$CurrencyConvertor = new CurrencyConvertor();

$ConversionRateResponse = $CurrencyConvertor->ConversionRate($ConversionRate);

var_dump($ConversionRateResponse);
exit;