Porridge (TV series) himself as the judge, a character role subsequently played by Maurice Denham in two episodes of the third series. The theme music for the closing credits was written by Max Harris, who had also written the theme music for numerous other TV shows, including "The Strange World of Gurney Slade" and "Doomwatch", and would go on to write the theme for "Open All Hours", another of the Seven of One pilots. The cheery theme was "deliberately at variance with the dour comedy" and given a music hall feel by Harris because of the lead character's Cockney origins. Following the pilot
Porridge (TV series) more bearable by beating the system, even in trivial ways. The BBC was forced to look around for locations because the Home Office refused permission for any production filming inside or outside a real prison. Instead the main gatehouse of the disused St Albans Prison (in the town's Victoria Street) was used in the opening credits. Exteriors were first filmed at a psychiatric hospital near Watford. However, after the completion of the second series, the hospital withdrew permission for more filming following complaints from patients' families. Another institution near Ealing was then used for the third series. Scenes within cells