finished php script and search