User talk:Bcoughlan/Login with curl

What is createPage coming from?

checkForErrors($xml) is missing, too.