Since Raspberry Pi cannot allow WOL (Wake On Lan), you may want it always on 24/7, but you can turn off the monitor using script and execute it remotely via ssh/php shell
To turn on/off monitor, create 2 scripts below:
poweroff.sh
tvservice -o
poweron.sh
tvservice --preferred
fbset -depth 8; fbset -depth 16;