pic16f877 vpp circuit
To program the PIC16F877 you need four signals, plus ground. The signals are: Vdd, Vpp, RB6/PGC, RB7/PGD.
Since these have to be available to the programmer, you can use a 10-pin header (2x5 contacts). These 4 pins on the PIC are directly connected to 4 pins on the header. The corresponding pins on the other row of the header are connected to the normal point in your circuit. You install 4 jumper links for normal operation. When you need to program the PI, remove the jumper links.
Your programming adaptor should apply the programming signals only to those 4 pins on the header which are connected to the PIC, plus GND, which can be the last two pins on the header.
Sometimes you can use resistors in series with RB6, RB7 (1-10k) and use only two jumpers, for Vdd and Vpp. Of course, RB6, RB7 still have to be connected to the programming header. If you cannot use these resistors for some reason, use 4 jumper links.
Hope this helps.