<?php require ("sphinxapi.php"); $cl = new SphinxClient(); $cl->SetWeights(array(10, 20, 30, 40)); $cl->Query('query'); ?>