If you're wanting server-side code, PHP is fun.
Though python can be used, and has lots of framworks for, server-side stuff, I've always thought PHP is better, totally IMO.
However, I wish I knew more python - I run a plex server, and so many python apps have been created for it's API that I wish I knew more/was more comfortable with it for how to make new/fix existing stuff for it.