<?php $server_origin = "http://full.server.name"; preg_match('/[^.]+\.[^.]+$/', $server_origin, $matches); $origin = $matches[0]; echo $origin;
You have javascript disabled. You will not be able to edit any code.