Stricter check on -p and associated fix in the php script