I just came across a post in Maurice Bloggue about the face detection using PHP (without OpenCV), I just had look on that post and it looks great, since he shared code too on that post.
If you are interested you can see the post here
Face detection in pure PHP (without OpenCV)