if you have at first line:
#!/usr/bin/php
You will init php bash withit.
Then you only need this via console:
/home/pi/someOneAtHome.php 192.168.178.20
Without a point at the end and without 1 or 0
The result of this will be 1 or 0.
Create a Shell Presence Sensor device exactly with this and it will work. Don’t ask to much, that can result a 0 cause the box is busy in the meanwhile…