i already have some experience with java and a bit with c/c++, i'd like to learn php now. i want to make some applications with sockets, which i already understand a bit of. however, it seems most books focus on php for web development, whereas i'm more interested in it as a general purpose programming language.
am i "doing it wrong" or is php viable as am i hoping it to be? if it is, are there any good books on the subject?