Change to PHP; establishing variables