1. Hayden – Let’s Break Up – Chords

    Posted on: November 25, 2009

    A friend and I have been practicing this newer Hayden song, Let’s Break Up. A Google search for the lyrics and/or other tabs came up with nothing for me – but it looks likes people are looking for it – so I thought I’d share. It’s just the lyrics and basic chords here but there’s not much more to it. This should get you started.

    The lyrics here are what we heard and wrote down while having some beers and jamming, so they might not be 100%. I never even thought to look in the CD booklet until now… but I’ll update this later if they’re in there.

    (more…)

  2. PHP: unserialize() Error at offset… (simple solution)

    Posted on: November 13, 2009

    Here’s what I was trying to do:

    • serialize an array on one page (PHP: serialize($array))
    • print out the results using echo or print_r
    • grab the serialized data from another script using file_get_contents
    • unserialize that array so I could go about my business

    but I kept getting this error:

    unserialize() [function.unserialize]: Error at offset 0 of 3457 bytes

    I looked around and couldn’t find a simple a solution. I’m sure this error can occur in other ways, but I was trying with the simplest of arrays:

    Array("Ryan" => "Bosinger");

    My problem was that my echo statement was throwing some whitespace in there. That’s all. This fixed it:

    $data["search_results"] = file_get_contents("http://localhost/sphider/search.php?query=" . $search_for . "&search=1&start=" . $start);
    $result_string = trim($data["search_results"]);
    $result_array = unserialize($result_string);

    Basically, try trimming the whitespace before unserializing. Hope that helps!

    Also, I was using Codeigniter but I really don’t think that has anything to do with it.