• Home
  • About
  • Map
  • Archives
  • Videos
  • Gallery
Grab the RSS feed

spiralbound.net

spiralbound.net
  • Home
  • Adventures
  • Data and Technology
  • Et cetera
  • Highlights

Posts Tagged with "string"

  • Data and Technology

    Posted on December 12th, 2007

    Written by cliff

    Tags

    array, path, php, programming, sed, spaces, string, str_replace, substitution, unix, unix find

    PHP and Sed for String Substitution

    I needed to replace a string in several thousand files scattered all over the filesystem on one of our servers. I used find to create a list of files that needed to be changed, along with their complete path and called it "list.txt". It looked something like this:

    /path/to/file/one/fileone.html
    /path/to/file/two/filetwo.php
    /path/to/file/three/filethree.htm
    /path/to/directory with spaces/filefour.txt
    and so on...

    I worked out the [...]

  • Data and Technology

    Posted on January 30th, 2007

    Written by cliff

    Tags

    Adriaan, automattic, blogging, Blogs, broken ecto, ecto, int, php, software, string, wordpress, wordpress 2.1, xmlrpc, xmlrpc.php

    Ecto is Busted in WordPress 2.1

    Last week I took this site to WordPress 2.1 and much to my dismay realized that Ecto, my favorite XMLRPC blogging client no longer worked. It would let me post, but it was never able to update the category information for posts... It just hung with no error. I looked into it, and found out [...]

  • Sponsor
  • Recent Comments
    • conor on Fish Supposedly Washed Up By Asian Tsunami
    • cliff on Raising Mallard Ducklings
    • Jan on Raising Mallard Ducklings
    • jeremy on Raising Mallard Ducklings
    • odane on Fish Supposedly Washed Up By Asian Tsunami
    • Bill on Raising Mallard Ducklings Redux
    • B Woehl on Why Did my Arm Fall Asleep?

Copyright © 2007 spiralbound.net - Proudly powered by Wordpress